Skip to content

Commit

Permalink
IE 11 issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
philptr committed Sep 29, 2017
1 parent 4577027 commit 674594d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/colorPick.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@
$("#colorPick").remove();

$("body").append('<div id="colorPick" style="display:none;top:' + top + 'px;left:' + left + 'px"><span>'+$.fn.colorPick.defaults.paletteLabel+'</span></div>');
jQuery.each(this.palette, (index, item) => {
$("#colorPick").append('<div class="colorPickButton" hexValue="' + item + '" style="background:' + item + '"></div>');
jQuery.each(this.palette, function (index, item) {
$("#colorPick").append('<div class="colorPickButton" hexValue="' + item + '" style="background:' + item + '"></div>');
});
if ($.fn.colorPick.defaults.allowCustomColor === true) {
if ($.fn.colorPick.defaults.allowCustomColor === true) {
$("#colorPick").append('<input type="text" style="margin-top:5px" class="customColorHash" />');
}
if ($.fn.colorPick.defaults.allowRecent === true) {
Expand Down
2 changes: 1 addition & 1 deletion src/colorPick.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 674594d

Please sign in to comment.