mirror of
https://github.com/PitPik/tinyColorPicker
synced 2025-06-27 13:11:01 -06:00
method toString fix
This commit is contained in:
parent
bf9cf4bfb1
commit
b1f65cf0a2
@ -56,7 +56,7 @@ $('.color').colorPicker({
|
|||||||
gap: 4 // gap to right and bottom edge of view port if repositioned to fit
|
gap: 4 // gap to right and bottom edge of view port if repositioned to fit
|
||||||
preventFocus: false // prevents default on focus of input fields (e.g. no keyboard on mobile)
|
preventFocus: false // prevents default on focus of input fields (e.g. no keyboard on mobile)
|
||||||
body: document.body // the element where the events are attached to (touchstart, mousedown, pointerdown, focus, click, change),
|
body: document.body // the element where the events are attached to (touchstart, mousedown, pointerdown, focus, click, change),
|
||||||
forceAlpha: force printing alpha channel (undefined = auto; false = never print alpha)
|
forceAlpha: // force printing alpha channel (undefined = auto; false = never print alpha)
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
####Some tips
|
####Some tips
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
Colors.prototype.toString = function(colorMode, forceAlpha) {
|
Colors.prototype.toString = function(colorMode, forceAlpha) {
|
||||||
return ColorConverter.color2text(colorMode.toLowerCase() || 'rgb', this.colors, forceAlpha);
|
return ColorConverter.color2text((colorMode || 'rgb').toLowerCase(), this.colors, forceAlpha);
|
||||||
};
|
};
|
||||||
|
|
||||||
// ------------------------------------------------------ //
|
// ------------------------------------------------------ //
|
||||||
|
File diff suppressed because one or more lines are too long
2
jqColorPicker.min.js
vendored
2
jqColorPicker.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user