Rename to startAnimation for symmetry.

This commit is contained in:
Tim Schaub
2012-01-02 21:52:31 -07:00
parent c151b04257
commit e363bdb782
3 changed files with 4 additions and 4 deletions

View File

@@ -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)
);
},

View File

@@ -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)
);
},

View File

@@ -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;