Fire jQuery event when creating new thing elements.

This commit is contained in:
Max Goodman
2013-03-31 03:37:03 -07:00
committed by Neil Williams
parent cac9a2db3c
commit e48210d4b8

View File

@@ -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;
});