~ubuntu-branches/debian/sid/wordpress/sid

« back to all changes in this revision

Viewing changes to wp-includes/js/customize-base.js

  • Committer: Package Import Robot
  • Author(s): Craig Small
  • Date: 2014-01-24 22:20:08 UTC
  • mfrom: (1.2.31)
  • Revision ID: package-import@ubuntu.com-20140124222008-wgyk0hvmhjkubf9i
Tags: 3.8.1+dfsg-1
* New upstream release.
* Depend on either mysql or mariadb client Closes: #732914

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
                        return this;
130
130
                },
131
131
 
132
 
                bind: function( id, callback ) {
 
132
                bind: function( id ) {
133
133
                        this.topics = this.topics || {};
134
134
                        this.topics[ id ] = this.topics[ id ] || $.Callbacks();
135
135
                        this.topics[ id ].add.apply( this.topics[ id ], slice.call( arguments, 1 ) );
136
136
                        return this;
137
137
                },
138
138
 
139
 
                unbind: function( id, callback ) {
 
139
                unbind: function( id ) {
140
140
                        if ( this.topics && this.topics[ id ] )
141
141
                                this.topics[ id ].remove.apply( this.topics[ id ], slice.call( arguments, 1 ) );
142
142
                        return this;
209
209
                        return value;
210
210
                },
211
211
 
212
 
                bind: function( callback ) {
 
212
                bind: function() {
213
213
                        this.callbacks.add.apply( this.callbacks, arguments );
214
214
                        return this;
215
215
                },
216
216
 
217
 
                unbind: function( callback ) {
 
217
                unbind: function() {
218
218
                        this.callbacks.remove.apply( this.callbacks, arguments );
219
219
                        return this;
220
220
                },
533
533
                        if ( this.origin() && event.origin !== this.origin() )
534
534
                                return;
535
535
 
 
536
                        // Ensure we have a string that's JSON.parse-able
 
537
                        if ( typeof event.data !== 'string' || event.data[0] !== '{' ) {
 
538
                                return;
 
539
                        }
 
540
 
536
541
                        message = JSON.parse( event.data );
537
542
 
538
543
                        // Check required message properties.