Changeset 21902
- Timestamp:
- 09/18/2012 10:59:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r21901 r21902 85 85 86 86 // Renders a view and places it within the modal window. 87 // Automatically adds a view if ` options` areprovided.88 render: function( id, options ) {87 // Automatically adds a view if `constructor` is provided. 88 render: function( id, constructor, options ) { 89 89 var view; 90 90 id = id || this.get('view'); 91 91 92 if ( options)93 this.add( id, options );92 if ( constructor ) 93 this.add( id, constructor, options ); 94 94 95 95 view = this.view( id );
Note: See TracChangeset
for help on using the changeset viewer.