Changeset 22338
- Timestamp:
- 10/30/2012 11:41:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22337 r22338 1050 1050 1051 1051 render: function() { 1052 var attachment = this.model.toJSON(), 1052 var state = this.controller.state(), 1053 attachment = this.model.toJSON(), 1053 1054 options = _.defaults( this.model.toJSON(), { 1054 1055 orientation: 'landscape', … … 1063 1064 1064 1065 options.buttons = this.buttons; 1065 options.describe = this.controller.state().get('describe');1066 options.describe = state.get('describe'); 1066 1067 1067 1068 if ( 'image' === options.type ) … … 1081 1082 // Update the model's details view. 1082 1083 this.model.on( 'selection:single selection:unsingle', this.details, this ); 1083 this.details( );1084 this.details( this.model, state.get('selection') ); 1084 1085 1085 1086 return this;
Note: See TracChangeset
for help on using the changeset viewer.