[OpenLayers-Dev] fallTrough parameter example

Eric Lemoine eric.c2c at gmail.com
Wed Jul 2 14:18:31 EDT 2008


Hi. If fallThrough is set to false the events do not propagate to dom
elements that are children of the current element. Eric

2008/7/2, Ivan Grcic <ivan.grcic at geofoto.hr>:
> Dear all,
>
> I'm having little difficulties understanding how the fallThrough
> parameter in OpenLayers.Events class is working. Is this code supose
> to surpress second function (registered to click) event to execute?
>
> map.events.fallThrough=false;
>
> map.events.register("click", map, function2);
> map.events.register("click", map, function1);
>
> Can anyone give me some example/explanation please, I didnt manage to
> find any good ones.
> Im  using OL 2.6,
>
> thank you!
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>



More information about the Dev mailing list