diff --git a/lib/OpenLayers/BaseTypes/Class.js b/lib/OpenLayers/BaseTypes/Class.js index a1f3495b54..d28637dbfb 100644 --- a/lib/OpenLayers/BaseTypes/Class.js +++ b/lib/OpenLayers/BaseTypes/Class.js @@ -49,48 +49,6 @@ OpenLayers.Class = function() { return C; }; -/** - * Property: isPrototype - * *Deprecated*. This is no longer needed and will be removed at 3.0. - */ -OpenLayers.Class.isPrototype = function () {}; - -/** - * APIFunction: OpenLayers.create - * *Deprecated*. Old method to create an OpenLayers style class. Use the - * constructor instead. - * - * Returns: - * An OpenLayers class - */ -OpenLayers.Class.create = function() { - return function() { - if (arguments && arguments[0] != OpenLayers.Class.isPrototype) { - this.initialize.apply(this, arguments); - } - }; -}; - -/** - * APIFunction: inherit - * *Deprecated*. Old method to inherit from one or more OpenLayers style - * classes. Use the constructor instead. - * - * Parameters: - * class - One or more classes can be provided as arguments - * - * Returns: - * An object prototype - */ -OpenLayers.Class.inherit = function (P) { - var C = function() { - P.call(this); - }; - var newArgs = [C].concat(Array.prototype.slice.call(arguments)); - OpenLayers.inherit.apply(null, newArgs); - return C.prototype; -}; - /** * Function: OpenLayers.inherit * diff --git a/lib/deprecated.js b/lib/deprecated.js index af9792dcd5..892c3c4f11 100644 --- a/lib/deprecated.js +++ b/lib/deprecated.js @@ -1,3 +1,44 @@ +/** + * Property: isPrototype + * *Deprecated*. This is no longer needed and will be removed at 3.0. + */ +OpenLayers.Class.isPrototype = function () {}; + +/** + * APIFunction: OpenLayers.create + * *Deprecated*. Old method to create an OpenLayers style class. Use the + * constructor instead. + * + * Returns: + * An OpenLayers class + */ +OpenLayers.Class.create = function() { + return function() { + if (arguments && arguments[0] != OpenLayers.Class.isPrototype) { + this.initialize.apply(this, arguments); + } + }; +}; + +/** + * APIFunction: inherit + * *Deprecated*. Old method to inherit from one or more OpenLayers style + * classes. Use the constructor instead. + * + * Parameters: + * class - One or more classes can be provided as arguments + * + * Returns: + * An object prototype + */ +OpenLayers.Class.inherit = function (P) { + var C = function() { + P.call(this); + }; + var newArgs = [C].concat(Array.prototype.slice.call(arguments)); + OpenLayers.inherit.apply(null, newArgs); + return C.prototype; +}; /** * Function: OpenLayers.nullHandler diff --git a/tests/BaseTypes/Class.html b/tests/BaseTypes/Class.html index 2079ce6d5f..0aa2d93a01 100644 --- a/tests/BaseTypes/Class.html +++ b/tests/BaseTypes/Class.html @@ -2,8 +2,6 @@ + + + + + + diff --git a/tests/list-tests.html b/tests/list-tests.html index 113e4feeb9..673a70a012 100644 --- a/tests/list-tests.html +++ b/tests/list-tests.html @@ -229,4 +229,5 @@
  • Kinetic.html
  • Util.html
  • deprecated/Ajax.html
  • +
  • deprecated/BaseTypes/Class.html