Skip to main content

Bug Tracker

Side navigation

#5448 closed feature (invalid)

Opened November 04, 2009 07:54AM UTC

Closed November 07, 2009 03:26AM UTC

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:
Description

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:

$(document).ready(function(){

$(document)

.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

console.log($(document).data('events'));

console.group('a.b');

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

console.groupEnd();

console.group('b.a');

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

console.groupEnd();

});

Attachments (1)
  • namespace.html (0.6 KB) - added by corey.hart November 04, 2009 07:55AM UTC.

    Test Page

Change History (1)

Changed November 07, 2009 03:26AM UTC by scottgonzalez comment:1

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".