Fix incorrect function name in warning message.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8024 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -340,7 +340,7 @@ if (!Number.prototype.limitSigDigs) {
|
|||||||
*/
|
*/
|
||||||
Number.prototype.limitSigDigs = function(sig) {
|
Number.prototype.limitSigDigs = function(sig) {
|
||||||
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
||||||
{'newMethod':'OpenLayers.String.limitSigDigs'}));
|
{'newMethod':'OpenLayers.Number.limitSigDigs'}));
|
||||||
return OpenLayers.Number.limitSigDigs(this, sig);
|
return OpenLayers.Number.limitSigDigs(this, sig);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -409,7 +409,7 @@ if (!Function.prototype.bind) {
|
|||||||
*/
|
*/
|
||||||
Function.prototype.bind = function() {
|
Function.prototype.bind = function() {
|
||||||
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
||||||
{'newMethod':'OpenLayers.String.bind'}));
|
{'newMethod':'OpenLayers.Function.bind'}));
|
||||||
// new function takes the same arguments with this function up front
|
// new function takes the same arguments with this function up front
|
||||||
Array.prototype.unshift.apply(arguments, [this]);
|
Array.prototype.unshift.apply(arguments, [this]);
|
||||||
return OpenLayers.Function.bind.apply(null, arguments);
|
return OpenLayers.Function.bind.apply(null, arguments);
|
||||||
@@ -430,7 +430,7 @@ if (!Function.prototype.bindAsEventListener) {
|
|||||||
*/
|
*/
|
||||||
Function.prototype.bindAsEventListener = function(object) {
|
Function.prototype.bindAsEventListener = function(object) {
|
||||||
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
||||||
{'newMethod':'OpenLayers.String.bindAsEventListener'}));
|
{'newMethod':'OpenLayers.Function.bindAsEventListener'}));
|
||||||
return OpenLayers.Function.bindAsEventListener(this, object);
|
return OpenLayers.Function.bindAsEventListener(this, object);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user