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:
parent
1851f98eb9
commit
2f4a7a42b7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue