Fix in Layer.setName for test failure caused by r1188.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1191 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -131,7 +131,9 @@ OpenLayers.Layer.prototype = {
|
||||
*/
|
||||
setName: function(newName) {
|
||||
this.name = newName;
|
||||
this.map.events.triggerEvent("changelayer");
|
||||
// assuming a map has been assigned, trigger changelayer
|
||||
if (this.map != null)
|
||||
this.map.events.triggerEvent("changelayer");
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user