Skip to content

Commit

Permalink
Fixed a bug in MO5: transform ignored duration 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteinbeck committed Oct 12, 2013
1 parent d7e5feb commit 8305772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/libs/MO5.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ var MO5 = (function ()
throw new Error("MO5.transform expects parameter callback to be a function.");
}

var dur = args.duration || 1000,
var dur,
now,
f,
tStart = new Date().getTime(),
Expand All @@ -227,6 +227,8 @@ var MO5 = (function ()
doLog = args.log || false,
c = 0, // number of times func get's executed
onFinish = args.onFinish || function () {};

dur = typeof args.duration !== "undefined" ? args.duration : 1000;

now = Date.now || function () { return +(new Date()); };

Expand Down

0 comments on commit 8305772

Please sign in to comment.