From e48210d4b88acf38ca64fbc371e1aaff745c0460 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Sun, 31 Mar 2013 03:37:03 -0700 Subject: [PATCH] Fire jQuery event when creating new thing elements. --- r2/r2/public/static/js/jquery.reddit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/r2/r2/public/static/js/jquery.reddit.js b/r2/r2/public/static/js/jquery.reddit.js index 58f8906bc..592f5f893 100644 --- a/r2/r2/public/static/js/jquery.reddit.js +++ b/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; });