Make WordPress Core

Changeset 26074


Ignore:
Timestamp:
11/10/2013 02:42:32 AM (11 years ago)
Author:
nacin
Message:

Fix order, declaration, tabbing of vars in color-picker.js.

props kadamwhite.
fixes #25877.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/color-picker.js

    r26067 r26074  
    22( function( $, undef ){
    33
    4     // html stuff
    5     var _before = '<a tabindex="0" class="wp-color-result" />',
     4    var ColorPicker,
     5        // html stuff
     6        _before = '<a tabindex="0" class="wp-color-result" />',
    67        _after = '<div class="wp-picker-holder" />',
    78        _wrap = '<div class="wp-picker-container" />',
    8         _button = '<input type="button" class="button button-small hidden" />',
     9        _button = '<input type="button" class="button button-small hidden" />';
     10
    911    // jQuery UI Widget constructor
    10         ColorPicker = {
     12    ColorPicker = {
    1113        options: {
    1214            defaultColor: false,
     
    2123                return;
    2224            var self = this,
    23                 el = self.element;
     25                el = self.element;
    2426
    2527            $.extend( self.options, el.data() );
Note: See TracChangeset for help on using the changeset viewer.