Hi guys. Trying again as not sure what happened to the previous post.
I am using jQuery 1.3.2 and getting some unexpected behavior this morning. This works, with the alert being executed when the showpalette event is triggered. $().bind('showpalette', function() { alert('showing palette!'); }); $.event.trigger('showpalette'); However, this does NOT work: $().bind('show.palette', function() { alert('showing palette!'); }); $.event.trigger('show.palette'); Also, trying to trigger the event with an event object, thus: $.event.trigger({ type : 'showpalette', palette : palette }); ... also does not work with the bound handler seeing 'undefined' as the second parm (after the event object). If I trigger the event like this: $.event.trigger('showpalette', [palette]); ... it is getting though to the handler just fine. What am I missing? Namespacing your events should be just fine in this scenario, right? Is there something about $.event.trigger() that is different to $ ('#elem').trigger()??