mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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
Block a user