Changeset 29322
- Timestamp:
- 07/29/2014 02:57:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-grid.js
r29312 r29322 363 363 initialize: function() { 364 364 var self = this; 365 365 366 media.view.Frame.prototype.initialize.apply( this, arguments ); 366 367 … … 372 373 this.gridRouter = this.options.gridRouter; 373 374 this.library = this.options.library; 375 374 376 if ( this.options.model ) { 375 377 this.model = this.options.model; … … 378 380 } 379 381 382 // Close the modal if the attachment is deleted. 383 this.listenTo( this.model, 'destroy', this.close, this ); 384 380 385 this.createStates(); 381 386 … … 386 391 // Bind default title creation. 387 392 this.on( 'title:create:default', this.createTitle, this ); 388 this.title.mode( 'default');393 this.title.mode( 'default' ); 389 394 390 395 this.options.hasPrevious = this.hasPrevious();
Note: See TracChangeset
for help on using the changeset viewer.