Comparing version 2.0.0 to 2.0.1
@@ -310,2 +310,4 @@ (function (global, factory) { | ||
var ANIMORE_STRUCT = Object.seal({ | ||
// fallback timer | ||
timer: null, | ||
/** | ||
@@ -362,3 +364,4 @@ * Cleanup function triggered when the animations will be complete | ||
// this will enable the testing of this script also in a node environment | ||
setTimeout(function () { | ||
clearTimeout(this.timer); | ||
this.timer = setTimeout(function () { | ||
if (index_4(_this.el, IS_ANIMATING_ATTR)) { | ||
@@ -368,2 +371,3 @@ _this.el.dispatchEvent(new Event('transitionend')); | ||
}, this.opts.duration + TIMER_OFFSET); | ||
return this; | ||
@@ -370,0 +374,0 @@ } |
@@ -0,1 +1,5 @@ | ||
# 2.0.1 | ||
- fixed: `setTimeout` debouncing issue | ||
# 2.0.0 | ||
@@ -2,0 +6,0 @@ |
@@ -16,2 +16,4 @@ import $ from 'bianco.query' | ||
const ANIMORE_STRUCT = Object.seal({ | ||
// fallback timer | ||
timer: null, | ||
/** | ||
@@ -59,3 +61,4 @@ * Cleanup function triggered when the animations will be complete | ||
// this will enable the testing of this script also in a node environment | ||
setTimeout(() => { | ||
clearTimeout(this.timer) | ||
this.timer = setTimeout(() => { | ||
if (hasAttr(this.el, IS_ANIMATING_ATTR)) { | ||
@@ -65,2 +68,3 @@ this.el.dispatchEvent(new Event('transitionend')) | ||
}, this.opts.duration + TIMER_OFFSET) | ||
return this | ||
@@ -67,0 +71,0 @@ } |
{ | ||
"name": "animore", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Animore makes DOM state transitions easier", | ||
@@ -5,0 +5,0 @@ "main": "animore.js", |
@@ -54,4 +54,4 @@ # animore | ||
const animaNode = animore(myDiv)[0] // DOM nodes are also valid | ||
const animaList = animore([myDiv, myUl]) // array are also valid | ||
const animaNodeList = animore(myUl.children) // NodeList are valid as well | ||
const animaList = animore([myDiv, myUl]) // an arrays are also valid | ||
const animaNodeList = animore(myUl.children) // NodeLists are valid as well | ||
@@ -58,0 +58,0 @@ ``` |
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
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
37601
685
0