This issue originated from #668104: Make overlay respect other click handlers #31.
More info on namespaced events: http://docs.jquery.com/Namespaced_Events
This issue originated from #668104: Make overlay respect other click handlers #31.
More info on namespaced events: http://docs.jquery.com/Namespaced_Events
Comments
Comment #1
casey commentedLooking at how jQuery UI is using namespaced events (keypress.ui-dialog, click.dialog-overlay) I suggest using "drupal-{module name}". drupal to prevent collision with non drupal scripts.
When a module wants to further distinguish between events it should use "drupal-{module name}.drupal-{module name}-{subdivision}". Note the use of multiple namespaces.
Comment #2
casey commentedWe also need guidelines on names of custom DOM events.
I suggest using "drupal{ModuleName}{Event}"
Comment #3
casey commentedNote #445130: Namespace the Drupal jQuery functions where extensions of the jQuery object are prefixed with "drupal". so "drupal{FunctionName}".
Comment #4
casey commentedI think we should include this in JavaScript coding standards.
Comment #5
nod_Totally, and I'd like to include #1446166: Use JS events instead of Drupal.behaviors into how we'll go about this.
Comment #6
nod_