Skip to content

Commit a78212b

Browse files
committed
Fix bug in the setColor method and bump to v1.2.3.
1 parent ebe0b2c commit a78212b

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
node_modules
2-
1+
/node_modules
2+
/package-lock.json

README.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ Use `npm install` to install the dependencies, and `grunt` to run the build.
147147
Change history
148148
-----------
149149

150+
* **Version 1.2.3 (2020-08-29)** :
151+
* Fix bug in the `setColor` method (thanks [al42and](https://github.com/al42and)).
150152
* **Version 1.2.2 (2017-08-19)** :
151153
* Add adaptive text color (thanks [Fulligan](https://github.com/Fulligan)).
152154
* Add hideInput and inputCSS options (thanks [graredcr](https://github.com/graredcr)).

jquery.simple-color.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Licensed under the MIT license:
88
* http://www.opensource.org/licenses/mit-license.php
99
*
10-
* Version: 1.2.2 (Sat, 19 Aug 2017 10:03:14 GMT)
10+
* Version: 1.2.3 (Sat, 29 Aug 2020 11:55:25 GMT)
1111
*/
1212
(function($) {
1313
/**
@@ -375,7 +375,7 @@
375375
$.fn.setColor = function(color) {
376376
this.each( function(index) {
377377
var displayBox = $(this).data('container').find('.simpleColorDisplay');
378-
setColor(displayBox, color, options);
378+
setColor(displayBox, color, { displayColorCode: displayBox.data('displayColorCode') });
379379
});
380380

381381
return this;

jquery.simple-color.min.js

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

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
"name": "jquery-simple-color",
33
"description": "A dead-simple jQuery color picker.",
44
"repository": "[email protected]:recurser/jquery-simple-color.git",
5-
"version": "1.2.2",
5+
"version": "1.2.3",
66
"main": "Gruntfile.js",
7-
"dependencies": {
8-
},
7+
"dependencies": {},
98
"devDependencies": {
10-
"grunt-contrib-uglify": "~0.2.0",
11-
"grunt": "~0.4.0"
9+
"grunt": "^1.3.0",
10+
"grunt-contrib-uglify": "^5.0.0"
1211
},
1312
"peerDependencies": {
1413
"grunt": "~0.4.0"
1514
}
1615
}
17-

src/jquery.simple-color.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
$.fn.setColor = function(color) {
376376
this.each( function(index) {
377377
var displayBox = $(this).data('container').find('.simpleColorDisplay');
378-
setColor(displayBox, color, options);
378+
setColor(displayBox, color, { displayColorCode: displayBox.data('displayColorCode') });
379379
});
380380

381381
return this;

0 commit comments

Comments
 (0)