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

git-svn-id: http://core.svn.wordpress.org/trunk@21908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith 2012-09-19 01:00:34 +00:00
parent 1851f98eb9
commit 2f4a7a42b7

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;