Media: Remove dead dropdown code from button view. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22708 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
10d46dd112
commit
3f362417c7
@ -2086,9 +2086,6 @@
|
||||
delete this.options[ key ];
|
||||
}, this );
|
||||
|
||||
if ( this.options.dropdown )
|
||||
this.options.dropdown.addClass('dropdown');
|
||||
|
||||
this.model.on( 'change', this.render, this );
|
||||
},
|
||||
|
||||
@ -2106,16 +2103,8 @@
|
||||
this.el.className = classes.join(' ');
|
||||
|
||||
this.$el.attr( 'disabled', model.disabled );
|
||||
|
||||
// Detach the dropdown.
|
||||
if ( this.options.dropdown )
|
||||
this.options.dropdown.detach();
|
||||
|
||||
this.$el.text( this.model.get('text') );
|
||||
|
||||
if ( this.options.dropdown )
|
||||
this.$el.append( this.options.dropdown );
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user