From a2eb607264ed19bc8a808ecfff93d84414cee6e6 Mon Sep 17 00:00:00 2001 From: koopersmith Date: Wed, 16 May 2012 05:17:26 +0000 Subject: [PATCH] Theme Customizer: Make the wp.customize.Events methods chainable. see #19910. git-svn-id: http://core.svn.wordpress.org/trunk@20801 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/customize-base.dev.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/js/customize-base.dev.js b/wp-includes/js/customize-base.dev.js index 66934ebea..860c30704 100644 --- a/wp-includes/js/customize-base.dev.js +++ b/wp-includes/js/customize-base.dev.js @@ -127,17 +127,20 @@ if ( typeof wp === 'undefined' ) trigger: function( id ) { if ( this.topics && this.topics[ id ] ) this.topics[ id ].fireWith( this, slice.call( arguments, 1 ) ); + return this; }, bind: function( id, callback ) { this.topics = this.topics || {}; this.topics[ id ] = this.topics[ id ] || $.Callbacks(); this.topics[ id ].add.apply( this.topics[ id ], slice.call( arguments, 1 ) ); + return this; }, unbind: function( id, callback ) { if ( this.topics && this.topics[ id ] ) this.topics[ id ].remove.apply( this.topics[ id ], slice.call( arguments, 1 ) ); + return this; } };