WordPress.org

Make WordPress Core

Changeset 20801


Ignore:
Timestamp:
05/16/2012 05:17:26 AM (7 years ago)
Author:
koopersmith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/customize-base.dev.js

    r20799 r20801  
    128128            if ( this.topics && this.topics[ id ] )
    129129                this.topics[ id ].fireWith( this, slice.call( arguments, 1 ) );
     130            return this;
    130131        },
    131132
     
    134135            this.topics[ id ] = this.topics[ id ] || $.Callbacks();
    135136            this.topics[ id ].add.apply( this.topics[ id ], slice.call( arguments, 1 ) );
     137            return this;
    136138        },
    137139
     
    139141            if ( this.topics && this.topics[ id ] )
    140142                this.topics[ id ].remove.apply( this.topics[ id ], slice.call( arguments, 1 ) );
     143            return this;
    141144        }
    142145    };
Note: See TracChangeset for help on using the changeset viewer.