Skip to content

Commit b1f65cf

Browse files
committed
method toString fix
1 parent bf9cf4b commit b1f65cf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $('.color').colorPicker({
5656
gap: 4 // gap to right and bottom edge of view port if repositioned to fit
5757
preventFocus: false // prevents default on focus of input fields (e.g. no keyboard on mobile)
5858
body: document.body // the element where the events are attached to (touchstart, mousedown, pointerdown, focus, click, change),
59-
forceAlpha: force printing alpha channel (undefined = auto; false = never print alpha)
59+
forceAlpha: // force printing alpha channel (undefined = auto; false = never print alpha)
6060
});
6161
```
6262
####Some tips

colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
};
8888

8989
Colors.prototype.toString = function(colorMode, forceAlpha) {
90-
return ColorConverter.color2text(colorMode.toLowerCase() || 'rgb', this.colors, forceAlpha);
90+
return ColorConverter.color2text((colorMode || 'rgb').toLowerCase(), this.colors, forceAlpha);
9191
};
9292

9393
// ------------------------------------------------------ //

jqColorPicker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)