don't translate error message and replace console log with exception
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
|
||||
/**
|
||||
* @requires OpenLayers/BaseTypes/Class.js
|
||||
* @requires OpenLayers/Console.js
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -137,9 +136,9 @@ OpenLayers.Tween = OpenLayers.Class({
|
||||
var b = this.begin[i];
|
||||
var f = this.finish[i];
|
||||
if (b == null || f == null || isNaN(b) || isNaN(f)) {
|
||||
OpenLayers.Console.error('invalid value for Tween');
|
||||
throw new TypeError('invalid value for Tween');
|
||||
}
|
||||
|
||||
|
||||
var c = f - b;
|
||||
value[i] = this.easing.apply(this, [this.time, b, c, this.duration]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user