[Pkg-javascript-commits] [dojo] 118/149: fixes #16111, fx IE type check to avoid sporadic bug

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository dojo.

commit 359c1e71baea11fa77cb8a530cd86aace6914c13
Author: Dylan Schiemann <dylan at dojotoolkit.org>
Date:   Wed Dec 30 06:29:55 2015 -0700

    fixes #16111, fx IE type check to avoid sporadic bug
---
 fx.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/fx.js b/fx.js
index 381b11c..fb21661 100644
--- a/fx.js
+++ b/fx.js
@@ -44,8 +44,14 @@ define([
 
 		this.duration = 0;
 		arrayUtil.forEach(this._animations, function(a){
-			this.duration += a.duration;
-			if(a.delay){ this.duration += a.delay; }
+			if(a){
+				if(typeof a.duration != "undefined"){
+	        		this.duration += a.duration;
+				}
+				if(a.delay){
+					this.duration += a.delay;
+				}
+			}
 		}, this);
 	};
 	_chain.prototype = new Evented();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list