Changeset 22804
- Timestamp:
- 11/22/2012 01:43:31 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22802 r22804 2193 2193 delete this.options.views; 2194 2194 2195 //if ( ! this.options.silent )2195 if ( ! this.options.silent ) 2196 2196 this.render(); 2197 2197 }, … … 2895 2895 }); 2896 2896 2897 this.views.add( this.toolbar ); 2898 2897 2899 filters = this.options.filters; 2898 2900 if ( 'uploaded' === filters ) … … 2943 2945 AttachmentView: this.options.AttachmentView 2944 2946 }); 2945 }, 2946 2947 dispose: function() { 2948 this.toolbar.destroy(); 2949 this.attachments.destroy(); 2950 media.View.prototype.dispose.apply( this, arguments ); 2951 }, 2952 2953 render: function() { 2954 this.toolbar.$el.detach(); 2955 this.attachments.$el.detach(); 2956 this.$el.html([ this.toolbar.render().el, this.attachments.render().el ]); 2957 return this; 2947 2948 this.views.add( this.attachments ); 2958 2949 } 2959 2950 });
Note: See TracChangeset
for help on using the changeset viewer.