Permalink
Browse files

Make fields fix default to zero

Other pickers seem to use this.
  • Loading branch information...
1 parent 1aefdec commit d6fa15b6ce17a079a7c96d2cd7bdea1c5d004df3 @bebraw committed Jul 11, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 README.md
  2. +1 −1 dist/colorjoe.js
  3. +1 −1 dist/colorjoe.min.js
  4. +1 −1 index.html
  5. +1 −1 src/extras.js
View
@@ -76,7 +76,7 @@ As you can see `fields` has been defined using an array. This array contains
the name of the extra and then parameters passed to inside an object. In this
case the extra accepts name of a color space (RGB, HSL, HSV or CMYK). In
addition it takes a limit value (defaults to 255) and a fix value
-(defaults to 2). fix represents the amount of numbers shown after decimal.
+(defaults to 0). fix represents the amount of numbers shown after decimal.
### Implementing Custom Extras
View
@@ -1037,7 +1037,7 @@ function currentColor(p) {
function fields(p, joe, o) {
var cs = o.space;
var fac = o.limit || 255;
- var fix = o.fix >= 0? o.fix: 2;
+ var fix = o.fix >= 0? o.fix: 0;
var methods = {
R: 'red',
G: 'green',
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -124,7 +124,7 @@
}).update();
colorjoe.rgb('extraPicker', '#113c38', [
'currentColor',
- ['fields', {space: 'RGB', limit: 255, fix: 0}],
+ ['fields', {space: 'RGB', limit: 255, fix: 2}],
'hex',
'text',
['text', {text: 'param demo'}]
View
@@ -16,7 +16,7 @@ function currentColor(p) {
function fields(p, joe, o) {
var cs = o.space;
var fac = o.limit || 255;
- var fix = o.fix >= 0? o.fix: 2;
+ var fix = o.fix >= 0? o.fix: 0;
var methods = {
R: 'red',
G: 'green',

0 comments on commit d6fa15b

Please sign in to comment.