Rename to startAnimation for symmetry.
This commit is contained in:
@@ -164,7 +164,7 @@ OpenLayers.Kinetic = OpenLayers.Class({
|
||||
callback(args.x, args.y, args.end);
|
||||
};
|
||||
|
||||
this.timerId = OpenLayers.Util.loopAnimation(
|
||||
this.timerId = OpenLayers.Util.startAnimation(
|
||||
OpenLayers.Function.bind(timerCallback, this)
|
||||
);
|
||||
},
|
||||
|
||||
@@ -53,7 +53,7 @@ OpenLayers.Tween = OpenLayers.Class({
|
||||
|
||||
/**
|
||||
* Property: animationId
|
||||
* {int} Loop id returned by OpenLayers.Util.loopAnimation
|
||||
* {int} Loop id returned by OpenLayers.Util.startAnimation
|
||||
*/
|
||||
animationId: null,
|
||||
|
||||
@@ -96,7 +96,7 @@ OpenLayers.Tween = OpenLayers.Class({
|
||||
if (this.callbacks && this.callbacks.start) {
|
||||
this.callbacks.start.call(this, this.begin);
|
||||
}
|
||||
this.animationId = OpenLayers.Util.loopAnimation(
|
||||
this.animationId = OpenLayers.Util.startAnimation(
|
||||
OpenLayers.Function.bind(this.play, this)
|
||||
);
|
||||
},
|
||||
|
||||
@@ -1714,7 +1714,7 @@ OpenLayers.Util.requestAnimationFrame = (function() {
|
||||
var loops = {};
|
||||
var request = OpenLayers.Util.requestAnimationFrame;
|
||||
|
||||
OpenLayers.Util.loopAnimation = function(callback, duration, element) {
|
||||
OpenLayers.Util.startAnimation = function(callback, duration, element) {
|
||||
duration = duration > 0 ? duration : Number.POSITIVE_INFINITY;
|
||||
var id = ++counter;
|
||||
var start = +new Date;
|
||||
|
||||
Reference in New Issue
Block a user