anim-event
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,2 @@ | ||
/*! AnimEvent v0.0.4 (c) anseki https://github.com/anseki/anim-event */ | ||
/*! AnimEvent v0.0.5 (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){"use strict";function t(){var n,e;o&&(l.call(window,o),o=null),c.forEach(function(e){e.event&&(e.listener(e.event),e.event=null,n=!0)}),n?(w=Date.now(),e=!0):Date.now()-w<a&&(e=!0),e&&(o=u.call(window,t))}function i(n){var e=-1;return c.some(function(t,i){return t.listener===n&&(e=i,!0)}),e}Object.defineProperty(e,"__esModule",{value:!0});var o,r=1e3/60,a=500,u=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(n){setTimeout(n,r)},l=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(n){clearTimeout(n)},c=[],w=Date.now(),m={add:function(n){var e;return i(n)===-1?(c.push(e={listener:n}),function(n){e.event=n,o||t()}):null},remove:function(n){var e;(e=i(n))>-1&&(c.splice(e,1),!c.length&&o&&(l.call(window,o),o=null))}};e.default=m,n.exports=e.default}]); |
{ | ||
"name": "anim-event", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Event Manager for Animation", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "anim-event", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"title": "AnimEvent", | ||
@@ -18,3 +18,3 @@ "description": "Event Manager for Animation", | ||
], | ||
"main": "anim-event.js", | ||
"main": "./src/anim-event.js", | ||
"devDependencies": { | ||
@@ -21,0 +21,0 @@ "babel-core": "^6.20.0", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21648
0