Changeset 22792
- Timestamp:
- 11/21/2012 08:43:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22791 r22792 1117 1117 }, this ); 1118 1118 1119 this.menu.view(). add( views );1119 this.menu.view().set( views ); 1120 1120 }, 1121 1121 … … 1440 1440 media.view.MediaFrame.Select.prototype.mainMenu.call( this, { silent: true }); 1441 1441 1442 this.menu.view(). add({1442 this.menu.view().set({ 1443 1443 separateLibrary: new media.View({ 1444 1444 className: 'separator', … … 1539 1539 library.gallery = library.gallery || new Backbone.Model(); 1540 1540 1541 this.sidebar.view(). add({1541 this.sidebar.view().set({ 1542 1542 gallery: new media.view.Settings.Gallery({ 1543 1543 controller: this, … … 1561 1561 }); 1562 1562 1563 this.sidebar.view(). add({1563 this.sidebar.view().set({ 1564 1564 display: new media.view.Settings.AttachmentDisplay({ 1565 1565 controller: this, … … 2182 2182 this._views = {}; 2183 2183 2184 this. add( _.extend( {}, this._views, this.options.views ), { silent: true });2184 this.set( _.extend( {}, this._views, this.options.views ), { silent: true }); 2185 2185 delete this.options.views; 2186 2186 … … 2210 2210 }, 2211 2211 2212 add: function( id, view, options ) {2212 set: function( id, view, options ) { 2213 2213 options = options || {}; 2214 2214 … … 2216 2216 if ( _.isObject( id ) ) { 2217 2217 _.each( id, function( view, id ) { 2218 this. add( id, view, { silent: true });2218 this.set( id, view, { silent: true }); 2219 2219 }, this ); 2220 2220 … … 2239 2239 }, 2240 2240 2241 remove: function( id, options ) {2241 unset: function( id, options ) { 2242 2242 delete this._views[ id ]; 2243 2243 if ( ! options || ! options.silent )
Note: See TracChangeset
for help on using the changeset viewer.