Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5448 closed feature (invalid)

Deep namespaced event's are being sorted

Reported by: corey.hart Owned by: brandon
Priority: minor Milestone: 1.4
Component: event Version: 1.3.2
Keywords: namespaced events Cc:
Blocked by: Blocking:


All namespaced event's get sorted when they are stored/called. I've got a test page attached, but the following code snippet should suffice:



.bind('namespace.a.b', function(){

console.log('Called a.b');

}) .bind('namespace.b.a', function(){

console.log('Called b.a');


Shows 2 events, both with type a.b



$(document).trigger('namespace.a.b'); Should only trigger a.b



$(document).trigger('namespace.b.a'); Should only trigger b.a



Attachments (1)

namespace.html (649 bytes) - added by corey.hart 13 years ago.
Test Page

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by corey.hart

Attachment: namespace.html added

Test Page

comment:1 Changed 13 years ago by scottgonzalez

Resolution: invalid
Status: newclosed

jQuery doesn't have deep namespacing, it has multiple namespacing. "namespace.a.b" is the same as "namespace.a namespace.b".

Note: See TracTickets for help on using tickets.