Array.indexOf(), though implemented in FF, is not standard javascript. we replace it with OpenLayers.Util.indexOf(), replace all usage
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -359,7 +359,7 @@ OpenLayers.Map.prototype = {
|
||||
if (newBaseLayer != oldBaseLayer) {
|
||||
|
||||
// is newBaseLayer an already loaded layer?
|
||||
if (this.layers.indexOf(newBaseLayer) != -1) {
|
||||
if (OpenLayers.Util.indexOf(this.layers, newBaseLayer) != -1) {
|
||||
|
||||
// make the old base layer invisible
|
||||
if (oldBaseLayer != null) {
|
||||
|
||||
Reference in New Issue
Block a user