anim-event
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -9,7 +9,3 @@ /* | ||
/* exported AnimEvent */ | ||
;var AnimEvent = // eslint-disable-line no-extra-semi | ||
// @EXPORT@ | ||
(function() { | ||
var AnimEvent = (function() { | ||
'use strict'; | ||
@@ -108,4 +104,4 @@ | ||
}; | ||
})() | ||
// @/EXPORT@ | ||
; | ||
})(); | ||
module.exports = AnimEvent; |
@@ -1,1 +0,2 @@ | ||
var AnimEvent=function(){"use strict";function n(){var e,t;i&&(r.call(window,i),i=null),w.forEach(function(n){n.event&&(n.listener(n.event),n.event=null,e=!0)}),e?(u=Date.now(),t=!0):Date.now()-u<o&&(t=!0),t&&(i=a.call(window,n))}function e(n){var e=-1;return w.some(function(i,t){return i.listener===n?(e=t,!0):!1}),e}var i,t=1e3/60,o=500,a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(n){setTimeout(n,t)},r=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(n){clearTimeout(n)},w=[],u=Date.now();return{add:function(t){var o;return-1===e(t)?(w.push(o={listener:t}),function(e){o.event=e,i||n()}):null},remove:function(n){var t;(t=e(n))>-1&&(w.splice(t,1),!w.length&&i&&(r.call(window,i),i=null))}}}(); | ||
/*! AnimEvent v0.0.3 (c) anseki https://github.com/anseki/anim-event */ | ||
var AnimEvent=function(n){function e(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return n[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=n,e.c=t,e.p="",e(0)}([function(n,e){var t=function(){"use strict";function n(){var e,i;t&&(a.call(window,t),t=null),u.forEach(function(n){n.event&&(n.listener(n.event),n.event=null,e=!0)}),e?(l=Date.now(),i=!0):Date.now()-l<o&&(i=!0),i&&(t=r.call(window,n))}function e(n){var e=-1;return u.some(function(t,i){return t.listener===n&&(e=i,!0)}),e}var t,i=1e3/60,o=500,r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(n){setTimeout(n,i)},a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(n){clearTimeout(n)},u=[],l=Date.now();return{add:function(i){var o;return e(i)===-1?(u.push(o={listener:i}),function(e){o.event=e,t||n()}):null},remove:function(n){var i;(i=e(n))>-1&&(u.splice(i,1),!u.length&&t&&(a.call(window,t),t=null))}}}();n.exports=t}]); |
{ | ||
"name": "anim-event", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Event Manager for Animation", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "anim-event", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"title": "AnimEvent", | ||
@@ -19,2 +19,9 @@ "description": "Event Manager for Animation", | ||
"main": "anim-event.js", | ||
"devDependencies": { | ||
"webpack": "^1.13.3" | ||
}, | ||
"scripts": { | ||
"build": "webpack --mode=build", | ||
"dev": "webpack --mode=dev" | ||
}, | ||
"homepage": "https://github.com/anseki/anim-event", | ||
@@ -21,0 +28,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
14447
11
276
1