/*! Imageloader - v0.1.3 - 2013-02-07 * https://github.com/alanclarke/imageloader * Copyright (c) 2013 alan clarke; Licensed MIT, GPL */ (function(a){function b(a,b){var c=this;c.img=new Image,c.img.src=a;if(c.img.complete)return!b||b(null,c.img);c.img.onload=function(){return c.img.width<1?!b||b(!0,c.img):!b||b(null,c.img)},c.img.onerror=function(){return!b||b(!0,c.img)}}function c(a){var b=this;b.opts=a,b.next=0;var c=typeof b.opts.async=="number"?b.opts.async:b.opts.async?b.opts.images.length:1;for(var d=0;d