WordPress.org

Make WordPress Core

Changeset 22708


Ignore:
Timestamp:
11/20/2012 11:29:00 AM (8 years ago)
Author:
koopersmith
Message:

Media: Remove dead dropdown code from button view. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22706 r22708  
    20872087            }, this );
    20882088
    2089             if ( this.options.dropdown )
    2090                 this.options.dropdown.addClass('dropdown');
    2091 
    20922089            this.model.on( 'change', this.render, this );
    20932090        },
     
    21072104
    21082105            this.$el.attr( 'disabled', model.disabled );
    2109 
    2110             // Detach the dropdown.
    2111             if ( this.options.dropdown )
    2112                 this.options.dropdown.detach();
    2113 
    21142106            this.$el.text( this.model.get('text') );
    2115 
    2116             if ( this.options.dropdown )
    2117                 this.$el.append( this.options.dropdown );
    21182107
    21192108            return this;
Note: See TracChangeset for help on using the changeset viewer.