Browse Source

method toString fix

pull/53/head
peterd 6 years ago
parent
commit
b1f65cf0a2
  1. 2
      README.md
  2. 2
      colors.js
  3. 2
      jqColorPicker.js.map
  4. 2
      jqColorPicker.min.js

2
README.md

@ -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

2
colors.js

@ -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);
};
// ------------------------------------------------------ //

2
jqColorPicker.js.map
File diff suppressed because it is too large
View File

2
jqColorPicker.min.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save