mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Fire jQuery event when creating new thing elements.
This commit is contained in:
committed by
Neil Williams
parent
cac9a2db3c
commit
e48210d4b8
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user