Moving animation methods out of Util.js.
Animation methods get their own module, giving methods more sensible names: * `OpenLayers.Animation.requestFrame` (was `OpenLayers.Util.requestAnimationFrame`) * `OpenLayers.Animation.start` (was `OpenLayers.Util.startAnimation`) * `OpenLayers.Animation.stop` (was `OpenLayers.Util.stopAnimation`)
This commit is contained in:
@@ -49,12 +49,12 @@
|
||||
t.plan(2);
|
||||
|
||||
var tween = new OpenLayers.Tween();
|
||||
tween.animationId = OpenLayers.Util.startAnimation(function() {});
|
||||
tween.animationId = OpenLayers.Animation.start(function() {});
|
||||
tween.playing = true;
|
||||
tween.stop();
|
||||
t.eq(tween.animationId, null, "tween correctly stopped");
|
||||
|
||||
tween.animationId = OpenLayers.Util.startAnimation(function() {});
|
||||
tween.animationId = OpenLayers.Animation.start(function() {});
|
||||
tween.playing = false;
|
||||
tween.stop();
|
||||
t.ok(tween.animationId != null, "stop method doesn't do anything if tween isn't running");
|
||||
|
||||
Reference in New Issue
Block a user