method toString fix

pull/53/head
peterd 8 years ago
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
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),
forceAlpha: force printing alpha channel (undefined = auto; false = never print alpha)
forceAlpha: // force printing alpha channel (undefined = auto; false = never print alpha)
});
```
####Some tips

@ -87,7 +87,7 @@
};
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

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save