OpenLayers OpenLayers

Changeset 8024

Show
Ignore:
Timestamp:
09/17/08 08:53:12 (3 months ago)
Author:
fredj
Message:

Fix incorrect function name in warning message.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/BaseTypes.js

    r7627 r8024  
    341341    Number.prototype.limitSigDigs = function(sig) { 
    342342        OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 
    343                               {'newMethod':'OpenLayers.String.limitSigDigs'})); 
     343                              {'newMethod':'OpenLayers.Number.limitSigDigs'})); 
    344344        return OpenLayers.Number.limitSigDigs(this, sig); 
    345345    }; 
     
    410410    Function.prototype.bind = function() { 
    411411        OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 
    412                                 {'newMethod':'OpenLayers.String.bind'})); 
     412                                {'newMethod':'OpenLayers.Function.bind'})); 
    413413        // new function takes the same arguments with this function up front 
    414414        Array.prototype.unshift.apply(arguments, [this]); 
     
    431431    Function.prototype.bindAsEventListener = function(object) { 
    432432        OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 
    433                         {'newMethod':'OpenLayers.String.bindAsEventListener'})); 
     433                        {'newMethod':'OpenLayers.Function.bindAsEventListener'})); 
    434434        return OpenLayers.Function.bindAsEventListener(this, object); 
    435435    };