Community Member Profile
- Profile: /members/7854-Thera.htm
- URL: http://www.wildpeaks.com
- Comments: 4
- Points: 46
Recent Blog Comments By Thera
-
Powering Publish And Subscribe Functionality With Native jQuery Event Management
Posted on Feb 21, 2011 at 10:42 AM
I think I'll just replace var _events = $({}); by var _events = $(document.createElement('span')); then I don't have to wonder if it uses document or not :)... read more »
-
Powering Publish And Subscribe Functionality With Native jQuery Event Management
Posted on Feb 21, 2011 at 10:17 AM
(I wish there was an edit button :/ ) I forgot in the code snipplet that of course, for firing an event, you would use: _events.trigger("myevent" /*and any additional parameters*/);... read more »
-
Powering Publish And Subscribe Functionality With Native jQuery Event Management
Posted on Feb 21, 2011 at 9:56 AM
@Thera, Ah, sorry about the mismatched strong tag.... read more »
-
Powering Publish And Subscribe Functionality With Native jQuery Event Management
Posted on Feb 21, 2011 at 9:55 AM
Personally, I use this to add jQuery events to non-DOM objects: function ObjName(){ var _events = $({}); this.bind = function(event_, callback_){ _events.bind(event_, callback_); };read more »



