Changeset 27171
- Timestamp:
- 02/13/2014 07:36:01 AM (11 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r27164 r27171 3567 3567 } 3568 3568 3569 selection.add( models ).single( model ); 3569 selection.add( models ); 3570 selection.single( model ); 3570 3571 return; 3571 3572 … … 3573 3574 // status, regardless of whether the model is the single model. 3574 3575 } else if ( 'toggle' === method ) { 3575 selection[ this.selected() ? 'remove' : 'add' ]( model ).single( model ); 3576 selection[ this.selected() ? 'remove' : 'add' ]( model ); 3577 selection.single( model ); 3576 3578 return; 3577 3579 } … … 3590 3592 // selection. By default, we `reset` the selection, but the 3591 3593 // `method` can be set to `add` the model to the selection. 3592 selection[ method ]( model ).single( model ); 3594 selection[ method ]( model ); 3595 selection.single( model ); 3593 3596 } 3594 3597 }, … … 3995 3998 collection.remove( model, { 3996 3999 silent: true 3997 }).add( model, { 4000 }); 4001 collection.add( model, { 3998 4002 silent: true, 3999 4003 at: ui.item.index() -
trunk/src/wp-includes/js/wp-backbone.js
r24368 r27171 341 341 Subviews: wp.Backbone.Subviews, 342 342 343 constructor: function( ) {343 constructor: function( options ) { 344 344 this.views = new this.Subviews( this, this.views ); 345 345 this.on( 'ready', this.ready, this ); 346 347 this.options = options || {}; 346 348 347 349 Backbone.View.apply( this, arguments );
Note: See TracChangeset
for help on using the changeset viewer.