Use some closure magic?
var myFunc = OpenLayers.Function.Bind(function() {
//Do your amazing layer search select here
this.deregisterForEvent(Fusion.Event.MAP_LOADED, myFunc);
}, this);
this.registerForEvent(Fusion.Event.MAP_LOADED, myFunc);
OpenLayers.Function.Bind is for preserving the context of the "this"
variable within the closure (ie. The widget instance)
- Jackie
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Fusion-Event-Firing-tp5022380p5022383.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users