don't translate error message and replace console log with exception

This commit is contained in:
fredj
2011-09-20 14:26:13 +02:00
parent 91f610f19c
commit 6e9a3e4c13
55 changed files with 91 additions and 924 deletions

View File

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