diff --git a/src/wp-includes/js/jquery/ui/accordion.js b/src/wp-includes/js/jquery/ui/accordion.js index 58fd5f97a7..5f799ab503 100644 --- a/src/wp-includes/js/jquery/ui/accordion.js +++ b/src/wp-includes/js/jquery/ui/accordion.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Accordion 1.11.1 + * jQuery UI Accordion 1.11.2 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors @@ -25,7 +25,7 @@ }(function( $ ) { return $.widget( "ui.accordion", { - version: "1.11.1", + version: "1.11.2", options: { active: 0, animate: {}, @@ -259,13 +259,22 @@ return $.widget( "ui.accordion", { }, _processPanels: function() { + var prevHeaders = this.headers, + prevPanels = this.panels; + this.headers = this.element.find( this.options.header ) .addClass( "ui-accordion-header ui-state-default ui-corner-all" ); - this.headers.next() + this.panels = this.headers.next() .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" ) .filter( ":not(.ui-accordion-content-active)" ) .hide(); + + // Avoid memory leaks (#10056) + if ( prevPanels ) { + this._off( prevHeaders.not( this.headers ) ); + this._off( prevPanels.not( this.panels ) ); + } }, _refresh: function() { diff --git a/src/wp-includes/js/jquery/ui/autocomplete.js b/src/wp-includes/js/jquery/ui/autocomplete.js index ae820edb91..a4ebc3c481 100644 --- a/src/wp-includes/js/jquery/ui/autocomplete.js +++ b/src/wp-includes/js/jquery/ui/autocomplete.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Autocomplete 1.11.1 + * jQuery UI Autocomplete 1.11.2 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors @@ -27,7 +27,7 @@ }(function( $ ) { $.widget( "ui.autocomplete", { - version: "1.11.1", + version: "1.11.2", defaultElement: "", options: { appendTo: null, diff --git a/src/wp-includes/js/jquery/ui/button.js b/src/wp-includes/js/jquery/ui/button.js index 829a163ad3..39b7f42049 100644 --- a/src/wp-includes/js/jquery/ui/button.js +++ b/src/wp-includes/js/jquery/ui/button.js @@ -1,5 +1,5 @@ /*! - * jQuery UI Button 1.11.1 + * jQuery UI Button 1.11.2 * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors @@ -52,7 +52,7 @@ var lastActive, }; $.widget( "ui.button", { - version: "1.11.1", + version: "1.11.2", defaultElement: "