Fix order, declaration, tabbing of vars in color-picker.js.
props kadamwhite. fixes #25877. git-svn-id: https://develop.svn.wordpress.org/trunk@26074 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b0c601170c
commit
974737e832
@ -1,13 +1,15 @@
|
|||||||
/* global wpColorPickerL10n:true */
|
/* global wpColorPickerL10n:true */
|
||||||
( function( $, undef ){
|
( function( $, undef ){
|
||||||
|
|
||||||
// html stuff
|
var ColorPicker,
|
||||||
var _before = '<a tabindex="0" class="wp-color-result" />',
|
// html stuff
|
||||||
|
_before = '<a tabindex="0" class="wp-color-result" />',
|
||||||
_after = '<div class="wp-picker-holder" />',
|
_after = '<div class="wp-picker-holder" />',
|
||||||
_wrap = '<div class="wp-picker-container" />',
|
_wrap = '<div class="wp-picker-container" />',
|
||||||
_button = '<input type="button" class="button button-small hidden" />',
|
_button = '<input type="button" class="button button-small hidden" />';
|
||||||
|
|
||||||
// jQuery UI Widget constructor
|
// jQuery UI Widget constructor
|
||||||
ColorPicker = {
|
ColorPicker = {
|
||||||
options: {
|
options: {
|
||||||
defaultColor: false,
|
defaultColor: false,
|
||||||
change: false,
|
change: false,
|
||||||
@ -20,7 +22,7 @@
|
|||||||
if ( ! $.support.iris )
|
if ( ! $.support.iris )
|
||||||
return;
|
return;
|
||||||
var self = this,
|
var self = this,
|
||||||
el = self.element;
|
el = self.element;
|
||||||
|
|
||||||
$.extend( self.options, el.data() );
|
$.extend( self.options, el.data() );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user