Skip to main content

Bug Tracker

Side navigation

#6666 closed bug (worksforme)

Opened June 14, 2010 05:45AM UTC

Closed June 15, 2010 12:53AM UTC

jQuery Namespaced Events Don't Trigger More General, Non-namespaced Handlers

Reported by: bundini Owned by:
Priority: Milestone: 1.4.3
Component: event Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

Simple test:

jQuery(document).bind('namespace',function(){

alert('triggered');});

jQuery(document).trigger('namespace.test');

I expect to see the alert box. Maybe my interpretation of the way these should behave is wrong.

Attachments (0)
Change History (1)

Changed June 15, 2010 12:53AM UTC by dmethvin comment:1

component: unfiledevent
resolution: → worksforme
status: newclosed

Think of the "namespaced" events like CSS classes. What you have as "namespace" there is an event. The trigger is only triggering events named "namespace" that also are ".test". There aren't any.

This is best discussed on the forum rather than the bug tracker.