Comparing version 0.3.5 to 0.3.6
@@ -29,3 +29,7 @@ 'use strict'; | ||
var promise = new Promise(function (resolve) { | ||
element.addEventListener(_this.transitionEndEvent, resolve); | ||
element.addEventListener(_this.transitionEndEvent, function (event) { | ||
if (element == event.target) { | ||
resolve(); | ||
} | ||
}); | ||
}); | ||
@@ -32,0 +36,0 @@ animationPromises.push(promise); |
@@ -57,3 +57,7 @@ 'use strict'; | ||
var promise = new Promise(function (resolve) { | ||
element.addEventListener(_this.transitionEndEvent, resolve); | ||
element.addEventListener(_this.transitionEndEvent, function (event) { | ||
if (element == event.target) { | ||
resolve(); | ||
} | ||
}); | ||
}); | ||
@@ -60,0 +64,0 @@ promises.push(promise); |
{ | ||
"name": "swup", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Animated page transitions with css.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
131118
1010