Changes between Version 7 and Version 8 of Release/2.12/Notes

Show
Ignore:
Timestamp:
11/23/11 23:43:55 (18 months ago)
Author:
erilem
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Release/2.12/Notes

    v7 v8  
    11== Behavior Changes from past releases == 
     2 
     3=== Function return values === 
     4 
     5Before commit [*] a few functions in the library displayed error messages and returned {{{undefined}}}, {{{null}}} or {{{false}}} if the parameters passed in were bad. With this commit these functions now just throw an error. For example, the {{{Map.addLayer}}} function used to return {{{false}}} if the layer was already in the map, it now throws an {{{Error}}} exception. People relying on return values to that function calls are successful need change their code. 
     6 
     7 * {{{OpenLayers.Bounds.add}}} throws a {{{TypeError}}} exception if {{{x}}} or {{{y}}} is null 
     8 * {{{OpenLayers.LonLat.add}}} throws a {{{TypeError}}} exception if {{{lon}}} or {{{lat}}} is null 
     9 * {{{OpenLayers.Pixel.add}}} throws a {{{TypeError}}} exception if {{{x}}} or {{{y}}} is null 
     10 * {{{OpenLayers.Filter.Comparison.value2regex}}} throws an {{{Error}}} exception if {{{wildcard}}} equals to {{{"."}}} 
     11 * {{{OpenLayers.Layer.PointTrack.addNodes}}}} throws a {{{TypeError}}} exception if {{{endPoint}}} isn't actually a point 
     12 * {{{OpenLayers.Layer.Vector.getFeatureFromEvent}}} throws an {{{Error}}} exception if the layer has no renderer 
     13 * {{{OpenLayers.Map.addLayer}}} throws a {{{TypeError}}} exception if the layer is already in the map 
     14 
     15[*] <https://github.com/openlayers/openlayers/commit/6e9a3e4c13e00c29daf28efd92b63c2390e69231> 
    216 
    317=== Format.WMTSCapabilities and Format.SOSCapabilities === 
     
    1428GitHub issue: https://github.com/openlayers/openlayers/pull/40 
    1529 
     30 
     31