Media JS: Prevent infinite scroll events from being unbound when Attachments views are re-rendered. see #21390.

git-svn-id: https://develop.svn.wordpress.org/trunk@21908 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-09-19 01:00:34 +00:00
parent 6a5a70ead3
commit 3de3ed85fd

View File

@ -540,6 +540,9 @@
},
render: function() {
// Detach the list from the DOM to prevent event removal.
this.$list.detach();
this.$el.html( this.template( this.options ) ).append( this.$list );
this.refresh();
return this;