mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
6a5a70ead3
commit
3de3ed85fd
@ -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