From df931d747d00fb53fa08cf1c18b1c1ae547019d9 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: https://develop.svn.wordpress.org/trunk@22478 602fd350-edb4-49c9-b593-d223f7449a82 --- 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() {