[mapguide-users] Fusion Event Firing

Jackie Ng jumpinjackie at gmail.com
Tue Dec 11 20:44:37 PST 2012


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.


More information about the mapguide-users mailing list