Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fire jQuery new thing events for thing insertions as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode authored and spladug committed Apr 1, 2013
1 parent 5e8ce20 commit 00273cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions r2/r2/public/static/js/jquery.reddit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
};
Expand Down

0 comments on commit 00273cd

Please sign in to comment.