Skip to content

Commit fdb4dc9

Browse files
committed
Merge pull request #39 from Zepx/master
Fixed a bug when calling randomColor() without any parameters
2 parents 8810cd3 + 216034b commit fdb4dc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "randomcolor",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "For generating attractive random colors",
55
"main": "randomColor.js",
66
"directories": {

randomColor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
loadColorBounds();
3434

3535
var randomColor = function(options) {
36-
if (options.seed && !seed) seed = options.seed;
3736
options = options || {};
37+
if (options.seed && !seed) seed = options.seed;
3838

3939
var H,S,B;
4040

0 commit comments

Comments
 (0)