Permalink
Browse files

Fire jQuery new thing events for thing insertions as well.

  • Loading branch information...
1 parent 5e8ce20 commit 00273cdf53fa40003897c3d6144c6b878dfbe895 @chromakode chromakode committed with spladug Mar 31, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 r2/r2/public/static/js/jquery.reddit.js
@@ -526,7 +526,9 @@ $.insert_things = function(things, append) {
s = s.append($.unsafe(data.content)).children(".thing:last");
else
s = s.prepend($.unsafe(data.content)).children(".thing:first");
+
thing_init_func(s.hide().show());
+ $(document).trigger('new_thing', s)
return s;
});
};

0 comments on commit 00273cd

Please sign in to comment.