Permalink
Browse files

Avoid creating time var in global scope

  • Loading branch information...
sole committed Sep 30, 2011
1 parent 904866d commit 03b29eed34887ebe7632f02ab14f18dcc2b52a9f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tween.js
View
@@ -57,7 +57,7 @@ var TWEEN = TWEEN || ( function () {
update: function (_time) {
i = 0; tl = tweens.length;
- time = _time || new Date().getTime();
+ var time = _time || new Date().getTime();
while ( i < tl ) {

0 comments on commit 03b29ee

Please sign in to comment.