Listing deprecated functionality in the notes.

This commit is contained in:
tschaub
2011-12-29 14:39:34 -07:00
parent 5773ad7ddc
commit 47368ddfa9

View File

@@ -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