photofloat/web/js/002-preloadimages.js
Jason A. Donenfeld 9c8beb0cc5 Add semi-colon.
2013-04-29 11:05:27 +02:00

12 lines
263 B
JavaScript

(function($) {
var cache = [];
$.preloadImages = function() {
var args_len = arguments.length;
for (var i = args_len; i--;) {
var cacheImage = document.createElement('img');
cacheImage.src = arguments[i];
cache.push(cacheImage);
}
}
})(jQuery);