From 23b62b3d77dee7717c266098f994320114b97403 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Fri, 9 Nov 2012 01:24:55 +0000 Subject: [PATCH] Media JS: Use correct variable name when binding to the `change:library` event. see [22477], #21390. git-svn-id: http://core.svn.wordpress.org/trunk@22478 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-views.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index fa13dc8425..6a47d5878b 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -440,7 +440,7 @@ this.frame.get( previous ).off( 'change:library', this._excludeStateLibrary, this ); if ( current ) - this.frame.get( previous ).on( 'change:library', this._excludeStateLibrary, this ); + this.frame.get( current ).on( 'change:library', this._excludeStateLibrary, this ); }, _excludeStateLibrary: function() {