From 47d5d564b4296c024b60a01af4a172274a979f02 Mon Sep 17 00:00:00 2001 From: Daryl 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: https://develop.svn.wordpress.org/trunk@20801 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 66934ebea6..860c307048 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; } };