Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [20801] trunk/wp-includes/js/customize-base.dev.js: Theme Customizer: Make the wp.customize.Events methods chainable. Date:Wed, 16 May 2012 05:17:26 +0000 (UTC)
 

Revision
20801
Author
koopersmith
Date
2012-05-16 05:17:26 +0000 (Wed, 16 May 2012)

Log Message

Theme Customizer: Make the wp.customize.Events methods chainable. see #19910.

Modified Paths

Diff

Modified: trunk/wp-includes/js/customize-base.dev.js (20800 => 20801)


--- trunk/wp-includes/js/customize-base.dev.js	2012-05-15 22:58:23 UTC (rev 20800)
+++ trunk/wp-includes/js/customize-base.dev.js	2012-05-16 05:17:26 UTC (rev 20801)
@@ -127,17 +127,20 @@
 		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;
 		}
 	};