Deprecated Class.js methods.
This commit is contained in:
@@ -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
|
||||
* <OpenLayers.Class> 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 <OpenLayers.Class> 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
|
||||
*
|
||||
|
||||
@@ -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
|
||||
* <OpenLayers.Class> 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 <OpenLayers.Class> 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
|
||||
|
||||
Reference in New Issue
Block a user