diff --git a/sprite.min.js b/sprite.min.js index e5ef4d7..078faea 100644 --- a/sprite.min.js +++ b/sprite.min.js @@ -5,4 +5,4 @@ * MIT license * @license */ -!function(a){"use strict";var b="1.0.1",c=function(){},d=function(a,b){for(var c=[],d=0;b>d;d+=1)c.push([d*a.width,0,a.width,a.height]);return c},e=function(){var a,b,c,d="object"==typeof arguments[0]?arguments[0]:{},e=arguments.length;for(a=0;e>a;a+=1)if(b=arguments[a],null!==b)for(c in b)d[c]=b[c];return d},f=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},g=function(a){return"[object Array]"===Object.prototype.toString.call(a)};!function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c=b&&(a.call(),d=(new Date).getTime())}if(!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame))return window.setInterval(a,b);var d=(new Date).getTime(),e={};return e.value=requestAnimationFrame(c),e},i=function(a){window.cancelAnimationFrame?window.cancelAnimationFrame(a.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(a.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(a.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimationFrame(a.value):window.oCancelRequestAnimationFrame?window.oCancelRequestAnimationFrame(a.value):window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(a.value):window.clearInterval(a)},j=function(a,b,k){var l,m,n,o=!1,p=0;this.el=a,this.options=e({},j.defaults,k),this.numFrames=b.length?b.length:Math.floor(k.imageWidth/b.width)*Math.floor(k.imageHeight/b.height),l=g(b)?b:d(b,this.numFrames);var q=function(a){this.el.style.backgroundPosition=-a[0]+"px "+-a[1]+"px"};this.isPlaying=function(){return o},this.frame=function(a){return f(a)&&p!==a&&(p=ad;d+=1)c.push([d*a.width,0,a.width,a.height]);return c},e=function(){var a,b,c,d="object"==typeof arguments[0]?arguments[0]:{},e=arguments.length;for(a=0;e>a;a+=1)if(b=arguments[a],null!==b)for(c in b)d[c]=b[c];return d},f=function(a){return!isNaN(parseFloat(a))&&isFinite(a)},g=function(a){return"[object Array]"===Object.prototype.toString.call(a)};!function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c=b&&(a.call(),d=(new Date).getTime())}if(!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame))return window.setInterval(a,b);var d=(new Date).getTime(),e={};return e.value=requestAnimationFrame(c),e},i=function(a){window.cancelAnimationFrame?window.cancelAnimationFrame(a.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(a.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(a.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimationFrame(a.value):window.oCancelRequestAnimationFrame?window.oCancelRequestAnimationFrame(a.value):window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(a.value):window.clearInterval(a)},j=function(a,b,k){var l,m,n,o,p=!1,q=0;this.el=a,this.options=e({},j.defaults,k),this.numFrames=b.length?b.length:Math.floor(k.imageWidth/b.width)*Math.floor(k.imageHeight/b.height),m=g(b)?b:d(b,this.numFrames),l=e({},this.options);var r=function(a){this.el.style.backgroundPosition=-a[0]+"px "+-a[1]+"px"};this.isPlaying=function(){return p},this.frame=function(a){return f(a)&&q!==a&&(q=a