Skip to content

Commit c690c55

Browse files
committed
Renamed to cacheImagesFetchURL for unity
images is plural in the plugin.
1 parent 0a6069b commit c690c55

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This will watch for changes to the parent and all child elements for changes tha
2727
Allows you to easily drop caching into your dom additions. It will look at the cached files, and if none exist, it will insert the default image, and attempt to fetch the specified image.
2828

2929
### Manually caching an image
30-
`cacheImageFetchURL('http://upload.wikimedia.org/wikipedia/commons/9/92/Muraltmuur.jpg');`
30+
`cacheImagesFetchURL('http://upload.wikimedia.org/wikipedia/commons/9/92/Muraltmuur.jpg');`
3131

3232
Attempts to cache that image into your clients browser local storage. This can be very helpful if you have an app where you are storying data into webSQL or IndexedDB and want to grab images during an initial sync, but those images might not be needed until later. By caching the images earily you ensure that they would be available along with the other data.
3333

demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h2>Flickr Test</h2>
6565
var items = [];
6666

6767
$.each( data.items, function( key, photo ) {
68-
// cacheImageFetchURL( photo.media.m ); // Cache the image for later use
68+
// cacheImagesFetchURL( photo.media.m ); // Cache the image for later use
6969

7070
$('#flickrTest').append( $('<img />').cacheImages({url: photo.media.m}) ); // Using the caching immediately
7171
});

jquery.cacheImages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
/*
211211
* Manually cache an image into the local storage
212212
*/
213-
window.cacheImageFetchURL = function( url ){
213+
window.cacheImagesFetchURL = function( url ){
214214
$('body').append( $('<img style="display: none;" />').addClass('cacheImagesRemove').cacheImages({url: url}) );
215215
};
216216
/*

0 commit comments

Comments
 (0)