Merge branch 'master' of github.com:openlayers/openlayers into norect
This commit is contained in:
@@ -941,75 +941,6 @@ if (!String.prototype.camelize) {
|
||||
};
|
||||
}
|
||||
|
||||
if (!String.prototype.startsWith) {
|
||||
/**
|
||||
* APIMethod: String.startsWith
|
||||
* *Deprecated*. Whether or not a string starts with another string.
|
||||
*
|
||||
* Parameters:
|
||||
* sStart - {String} The string we're testing for.
|
||||
*
|
||||
* Returns:
|
||||
* {Boolean} Whether or not this string starts with the string passed in.
|
||||
*/
|
||||
String.prototype.startsWith = function(sStart) {
|
||||
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
||||
{'newMethod':'OpenLayers.String.startsWith'}));
|
||||
return OpenLayers.String.startsWith(this, sStart);
|
||||
};
|
||||
}
|
||||
|
||||
if (!String.prototype.contains) {
|
||||
/**
|
||||
* APIMethod: String.contains
|
||||
* *Deprecated*. Whether or not a string contains another string.
|
||||
*
|
||||
* Parameters:
|
||||
* str - {String} The string that we're testing for.
|
||||
*
|
||||
* Returns:
|
||||
* {Boolean} Whether or not this string contains with the string passed in.
|
||||
*/
|
||||
String.prototype.contains = function(str) {
|
||||
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
||||
{'newMethod':'OpenLayers.String.contains'}));
|
||||
return OpenLayers.String.contains(this, str);
|
||||
};
|
||||
}
|
||||
|
||||
if (!String.prototype.trim) {
|
||||
/**
|
||||
* APIMethod: String.trim
|
||||
* *Deprecated*. Removes leading and trailing whitespace characters from a string.
|
||||
*
|
||||
* Returns:
|
||||
* {String} A trimmed version of the string - all leading and
|
||||
* trailing spaces removed
|
||||
*/
|
||||
String.prototype.trim = function() {
|
||||
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
||||
{'newMethod':'OpenLayers.String.trim'}));
|
||||
return OpenLayers.String.trim(this);
|
||||
};
|
||||
}
|
||||
|
||||
if (!String.prototype.camelize) {
|
||||
/**
|
||||
* APIMethod: String.camelize
|
||||
* *Deprecated*. Camel-case a hyphenated string.
|
||||
* Ex. "chicken-head" becomes "chickenHead", and
|
||||
* "-chicken-head" becomes "ChickenHead".
|
||||
*
|
||||
* Returns:
|
||||
* {String} The string, camelized
|
||||
*/
|
||||
String.prototype.camelize = function() {
|
||||
OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",
|
||||
{'newMethod':'OpenLayers.String.camelize'}));
|
||||
return OpenLayers.String.camelize(this);
|
||||
};
|
||||
}
|
||||
|
||||
if (!Function.prototype.bind) {
|
||||
/**
|
||||
* APIMethod: Function.bind
|
||||
|
||||
@@ -50,3 +50,49 @@ The base `OpenLayers.Geometry` class no longer depends on `OpenLayers.Format.WKT
|
||||
|
||||
Without the WKT format included (by default), the `OpenLayers.Geometry::toString` method now returns "[object Object]." Previously, it returned the Well-Known Text representation of the geometry. To maintain the previous behavior, include the OpenLayers/Format/WKT.js file in your build.
|
||||
|
||||
## Deprecated Components
|
||||
|
||||
A number of constructors have been marked as deprecated for multiple releases in the 2.x series. For the 2.12 release this deprecated functionality has been moved to a separate deprecated.js file. If you use any of the constructors or methods below, you will have to explicitly include the deprecated.js file in your build (or add it in a separate `<script>` tag after OpenLayers.js).
|
||||
|
||||
* OpenLayers.Class.isPrototype
|
||||
* OpenLayers.Class.create
|
||||
* OpenLayers.Class.inherit
|
||||
* OpenLayers.Util.clearArray
|
||||
* OpenLayers.Util.setOpacity
|
||||
* OpenLayers.Util.safeStopPropagation
|
||||
* OpenLayers.Util.getArgs
|
||||
* OpenLayers.nullHandler
|
||||
* OpenLayers.loadURL
|
||||
* OpenLayers.parseXMLString
|
||||
* OpenLayers.Ajax.* (all methods)
|
||||
* OpenLayers.Element.hide
|
||||
* OpenLayers.Element.show
|
||||
* OpenLayers.Element.getDimensions
|
||||
* OpenLayers.Tile.prototype.getBoundsFromBaseLayer
|
||||
* OpenLayers.Control.MouseDefaults
|
||||
* OpenLayers.Control.MouseToolbar
|
||||
* OpenLayers.Layer.Grid.prototype.getGridBounds
|
||||
* OpenLayers.Format.XML.prototype.concatChildValues
|
||||
* OpenLayers.Layer.WMS.Post
|
||||
* OpenLayers.Layer.WMS.Untiled
|
||||
* OpenLayers.Layer.MapServer.Untiled
|
||||
* OpenLayers.Tile.WFS
|
||||
* OpenLayers.Feature.WFS
|
||||
* OpenLayers.Layer.WFS
|
||||
* OpenLayers.Layer.MultiMap
|
||||
* OpenLayers.Layer.VirtualEarth
|
||||
* OpenLayers.Protocol.SQL
|
||||
* OpenLayers.Protocol.SQL.Gears
|
||||
* OpenLayers.Layer.Yahoo
|
||||
* OpenLayers.Layer.GML
|
||||
|
||||
In addition, OpenLayers no longer modifies any native prototypes or objects by default. If you rely on any of the following, you'll need to include deprecated.js explicitly to get the same behavior.
|
||||
|
||||
* String.prototype.startsWith
|
||||
* String.prototype.contains
|
||||
* String.prototype.trim
|
||||
* String.prototype.camelize
|
||||
* Function.prototype.bind
|
||||
* Function.prototype.bindAsEventListener
|
||||
* Event.stop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user