Skip to main content
Ben Nadel at InVision In Real Life (IRL) 2018 (Hollywood, CA) with: Aaron Lerch
Ben Nadel at InVision In Real Life (IRL) 2018 (Hollywood, CA) with: Aaron Lerch@aaronlerch )

Dave Hulbert

Member since Apr 23, 2010

Recent Blog Comments By Dave Hulbert

  • Binding Events To Non-DOM Objects With jQuery

    Posted on Apr 23, 2010 at 9:10 AM

    @Ben, great post - just what I was looking for. @Jon, works for me (in Firefox): function User(name) { var my_name = name; this.get_name= function() { $(this).trigger('got_name', my_name); return my_name; }; } d = new User('dave'); $(d).bind('got_name', function(e, d){a... read more »