mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-25 12:35:36 +08:00
committed by
Peter Bacon Darwin
parent
8b921617e9
commit
31ec9f14ef
@@ -17,7 +17,7 @@ describe('$interval', function() {
|
||||
fn: fn,
|
||||
id: nextRepeatId
|
||||
});
|
||||
repeatFns.sort(function(a,b){ return a.nextTime - b.nextTime;});
|
||||
repeatFns.sort(function(a, b){ return a.nextTime - b.nextTime;});
|
||||
|
||||
return nextRepeatId++;
|
||||
},
|
||||
@@ -43,7 +43,7 @@ describe('$interval', function() {
|
||||
var task = repeatFns[0];
|
||||
task.fn();
|
||||
task.nextTime += task.delay;
|
||||
repeatFns.sort(function(a,b){ return a.nextTime - b.nextTime;});
|
||||
repeatFns.sort(function(a, b){ return a.nextTime - b.nextTime;});
|
||||
}
|
||||
return millis;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user