anim-event
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -1,2 +0,2 @@ | ||
/*! AnimEvent v1.0.4 (c) anseki https://github.com/anseki/anim-event */ | ||
/*! AnimEvent v1.0.5 (c) anseki https://github.com/anseki/anim-event */ | ||
var AnimEvent=function(n){function e(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t={};return e.m=n,e.c=t,e.i=function(n){return n},e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:o})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},e.p="",e(e.s=0)}([function(n,e,t){"use strict";function o(){var n=void 0,e=void 0;w&&(c.call(window,w),w=null),a.forEach(function(e){e.event&&(e.listener(e.event),e.event=null,n=!0)}),n?(d=Date.now(),e=!0):Date.now()-d<u&&(e=!0),e&&(w=l.call(window,o))}function i(n){var e=-1;return a.some(function(t,o){return t.listener===n&&(e=o,!0)}),e}Object.defineProperty(e,"__esModule",{value:!0});var r=1e3/60,u=500,a=[],l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return setTimeout(n,r)},c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(n){return clearTimeout(n)},w=void 0,d=Date.now(),m={add:function(n){var e=void 0;return i(n)===-1?(a.push(e={listener:n}),function(n){e.event=n,w||o()}):null},remove:function(n){var e=void 0;(e=i(n))>-1&&(a.splice(e,1),!a.length&&w&&(c.call(window,w),w=null))}};e.default=m,n.exports=e.default}]); |
{ | ||
"name": "anim-event", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Event Manager for Animation", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "anim-event", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"title": "AnimEvent", | ||
@@ -26,4 +26,4 @@ "description": "Event Manager for Animation", | ||
"cross-env": "^3.2.4", | ||
"pre-proc": "^0.2.4", | ||
"pre-proc-loader": "^1.0.3", | ||
"pre-proc": "^0.2.5", | ||
"pre-proc-loader": "^1.0.4", | ||
"webpack": "^2.2.1" | ||
@@ -30,0 +30,0 @@ }, |