Permalink
Browse files

Fire jQuery event when creating new thing elements.

  • Loading branch information...
1 parent cac9a2d commit e48210d4b88acf38ca64fbc371e1aaff745c0460 @chromakode chromakode committed with spladug Mar 31, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 r2/r2/public/static/js/jquery.reddit.js
@@ -510,6 +510,7 @@ $.fn.replace_things = function(things, keep_children, reveal, stubs) {
/* lastly, set the event handlers for these new things */
thing_init_func(new_thing);
+ $(document).trigger('new_thing', new_thing)
return new_thing;
});

0 comments on commit e48210d

Please sign in to comment.