Comparing version 0.1.0 to 0.1.1
@@ -175,3 +175,3 @@ /*! | ||
// add handler | ||
controlEventListeners(addEventListener, targetEvents, element, handler); | ||
controlEventListeners(element, addEventListener, targetEvents, handler); | ||
} else { | ||
@@ -189,3 +189,3 @@ // use Promise | ||
// add handler | ||
controlEventListeners(addEventListener, targetEvents, element, handler); | ||
controlEventListeners(element, addEventListener, targetEvents, handler); | ||
}); | ||
@@ -204,2 +204,6 @@ } | ||
if (!element || !element.nodeType || element.nodeType !== 1) { | ||
throw new TypeError('element must be a HTMLElement'); | ||
} | ||
handler = function() { | ||
@@ -206,0 +210,0 @@ // remove handler |
@@ -6,2 +6,2 @@ /*! | ||
*/ | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.effected=t():n.effected=t()}(this,function(){return function(n){function t(i){if(e[i])return e[i].exports;var o=e[i]={exports:{},id:i,loaded:!1};return n[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var e={};return t.m=n,t.c=e,t.p="",t(0)}([function(n,t){"use strict";function e(n,t,e,i){var o,r;for(o=0,r=e.length;r>o;++o)n[t](e[o],i,!1)}function i(n,t,o){var m,u,p;if(!n||!n.nodeType||1!==n.nodeType)throw new TypeError("element must be a HTMLElement");if("function"==typeof t&&"undefined"==typeof o&&(o=t,t=null),m=typeof o,"function"!==m&&!i.Promise)throw new Error("callback function required");switch(t){case"animationstart":u=f;break;case"animation":case"animationend":u=s;break;case"transition":case"transitionend":u=d;break;default:u=c}return"function"!==m?new i.Promise(function(t,i){p=function(i){e(n,a,u,p),t(i)},e(r,u,n,p)}):(p=function(t){e(n,a,u,p),o(t)},void e(r,u,n,p))}function o(n,t){var i;i=function(){e(n,a,m,t),e(n,a,s,i)},e(n,r,s,i),e(n,r,m,t)}var r="addEventListener",a="removeEventListener",f=["animationstart","webkitAnimationStart","mozAnimationStart","msAnimationStart","oAnimationStart"],s=["animationend","webkitAnimationEnd","mozAnimationEnd","msAnimationEnd","oAnimationEnd"],m=["animationiteration","webkitAnimationIteration","mozAnimationIteration","msAnimationIteration","oAnimationIteration"],d=["transitionend","webkitTransitionEnd","mozTransitionEnd","msTransitionEnd","oTransitionEnd"],c=[].concat(s,d);i.Promise="undefined"!=typeof Promise?Promise:null,i.effected=i,i.iterated=o,n.exports=i}])}); | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.effected=t():n.effected=t()}(this,function(){return function(n){function t(i){if(e[i])return e[i].exports;var o=e[i]={exports:{},id:i,loaded:!1};return n[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var e={};return t.m=n,t.c=e,t.p="",t(0)}([function(n,t){"use strict";function e(n,t,e,i){var o,r;for(o=0,r=e.length;r>o;++o)n[t](e[o],i,!1)}function i(n,t,o){var s,u,p;if(!n||!n.nodeType||1!==n.nodeType)throw new TypeError("element must be a HTMLElement");if("function"==typeof t&&"undefined"==typeof o&&(o=t,t=null),s=typeof o,"function"!==s&&!i.Promise)throw new Error("callback function required");switch(t){case"animationstart":u=f;break;case"animation":case"animationend":u=m;break;case"transition":case"transitionend":u=d;break;default:u=c}return"function"!==s?new i.Promise(function(t,i){p=function(i){e(n,a,u,p),t(i)},e(n,r,u,p)}):(p=function(t){e(n,a,u,p),o(t)},void e(n,r,u,p))}function o(n,t){var i;if(!n||!n.nodeType||1!==n.nodeType)throw new TypeError("element must be a HTMLElement");i=function(){e(n,a,s,t),e(n,a,m,i)},e(n,r,m,i),e(n,r,s,t)}var r="addEventListener",a="removeEventListener",f=["animationstart","webkitAnimationStart","mozAnimationStart","msAnimationStart","oAnimationStart"],m=["animationend","webkitAnimationEnd","mozAnimationEnd","msAnimationEnd","oAnimationEnd"],s=["animationiteration","webkitAnimationIteration","mozAnimationIteration","msAnimationIteration","oAnimationIteration"],d=["transitionend","webkitTransitionEnd","mozTransitionEnd","msTransitionEnd","oTransitionEnd"],c=[].concat(m,d);i.Promise="undefined"!=typeof Promise?Promise:null,i.effected=i,i.iterated=o,n.exports=i}])}); |
@@ -0,3 +1,8 @@ | ||
# 0.1.1 / 2016-04-06 | ||
- fix to callback | ||
- change to check element in effected.iterated | ||
# 0.1.0 / 2016-04-05 | ||
- initial release |
{ | ||
"name": "effected", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "sasa+1 <sasaplus1@gmail.com>", | ||
@@ -27,3 +27,11 @@ "description": "animation events use as Promises", | ||
"coffee-script": "^1.10.0", | ||
"karma": "^0.13.22", | ||
"karma-chrome-launcher": "^0.2.3", | ||
"karma-espower-preprocessor": "0.0.4", | ||
"karma-firefox-launcher": "^0.1.7", | ||
"karma-mocha": "^0.2.2", | ||
"karma-safari-launcher": "^0.1.1", | ||
"mocha": "^2.4.5", | ||
"parallelshell": "^2.0.0", | ||
"power-assert": "^1.3.1", | ||
"rimraf": "^2.5.2", | ||
@@ -30,0 +38,0 @@ "webpack": "^1.12.14" |
@@ -114,3 +114,3 @@ 'use strict'; | ||
// add handler | ||
controlEventListeners(addEventListener, targetEvents, element, handler); | ||
controlEventListeners(element, addEventListener, targetEvents, handler); | ||
} else { | ||
@@ -128,3 +128,3 @@ // use Promise | ||
// add handler | ||
controlEventListeners(addEventListener, targetEvents, element, handler); | ||
controlEventListeners(element, addEventListener, targetEvents, handler); | ||
}); | ||
@@ -143,2 +143,6 @@ } | ||
if (!element || !element.nodeType || element.nodeType !== 1) { | ||
throw new TypeError('element must be a HTMLElement'); | ||
} | ||
handler = function() { | ||
@@ -145,0 +149,0 @@ // remove handler |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16208
336
12