Use Date.now() instead of goog.now()

This commit is contained in:
Marc Jansen
2015-09-28 15:23:36 +02:00
parent 6c5775e6f6
commit 2ed3f28ab8
3 changed files with 8 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ goog.require('ol.easing');
*/
ol.animation.bounce = function(options) {
var resolution = options.resolution;
var start = options.start ? options.start : goog.now();
var start = options.start ? options.start : Date.now();
var duration = options.duration !== undefined ? options.duration : 1000;
var easing = options.easing ?
options.easing : ol.easing.upAndDown;
@@ -52,7 +52,7 @@ ol.animation.bounce = function(options) {
*/
ol.animation.pan = function(options) {
var source = options.source;
var start = options.start ? options.start : goog.now();
var start = options.start ? options.start : Date.now();
var sourceX = source[0];
var sourceY = source[1];
var duration = options.duration !== undefined ? options.duration : 1000;
@@ -92,7 +92,7 @@ ol.animation.pan = function(options) {
*/
ol.animation.rotate = function(options) {
var sourceRotation = options.rotation ? options.rotation : 0;
var start = options.start ? options.start : goog.now();
var start = options.start ? options.start : Date.now();
var duration = options.duration !== undefined ? options.duration : 1000;
var easing = options.easing ?
options.easing : ol.easing.inAndOut;
@@ -138,7 +138,7 @@ ol.animation.rotate = function(options) {
*/
ol.animation.zoom = function(options) {
var sourceResolution = options.resolution;
var start = options.start ? options.start : goog.now();
var start = options.start ? options.start : Date.now();
var duration = options.duration !== undefined ? options.duration : 1000;
var easing = options.easing ?
options.easing : ol.easing.inAndOut;