Make WordPress Core

Ticket #25877: 25877.vars.diff

File 25877.vars.diff, 1.1 KB (added by jorbin, 11 years ago)
  • src/wp-admin/js/color-picker.js

     
    44        var _before = '<a tabindex="0" class="wp-color-result" />',
    55                _after = '<div class="wp-picker-holder" />',
    66                _wrap = '<div class="wp-picker-container" />',
    7                 _button = '<input type="button" class="button button-small hidden" />';
    8 
     7                _button = '<input type="button" class="button button-small hidden" />',
    98        // jQuery UI Widget constructor
    10         var ColorPicker = {
     9            ColorPicker = {
    1110                options: {
    1211                        defaultColor: false,
    1312                        change: false,
     
    1918                        // bail early for unsupported Iris.
    2019                        if ( ! $.support.iris )
    2120                                return;
    22                         var self = this;
    23                         var el = self.element;
     21                        var self = this,
     22                            el = self.element;
    2423
    2524                        $.extend( self.options, el.data() );
    2625
     
    126125
    127126                        this.options.defaultColor = newDefaultColor;
    128127                }
    129         }
     128        };
    130129
    131130        $.widget( 'wp.wpColorPicker', ColorPicker );
    132 }( jQuery ) );
    133  No newline at end of file
     131}( jQuery ) );