Skip to content

Commit

Permalink
Fix for ES6 Module
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Jun 11, 2020
1 parent 6d3d686 commit 18b6399
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ This project exists thanks to all the people who contribute.
Release Notes
-------------

### 2.1.1

- Fixed common issue with ES6 module which does not reference the `this` scope to `window` object by default.

### 2.1.0

- Added ability to clear the hook storage object if it’s empty.
Expand Down
6 changes: 3 additions & 3 deletions color-picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* ==============================================================
* COLOR PICKER 2.1.0
* COLOR PICKER 2.1.1
* ==============================================================
* Author: Taufik Nurrohman <https://github.com/taufik-nurrohman>
* License: MIT
Expand Down Expand Up @@ -185,7 +185,7 @@

(function($$) {

$$.version = '2.1.0';
$$.version = '2.1.1';

$$.state = {
'class': 'color-picker',
Expand Down Expand Up @@ -594,4 +594,4 @@

});

})(this, this.document, 'CP');
})(window, document, 'CP');
4 changes: 2 additions & 2 deletions color-picker.min.js

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

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<body>
<p>Do you like this project? Please support my <a href="https://github.com/mecha-cms">Mecha CMS</a> project too. Thank you!</p>
<header>
<h1>Color Picker v2.1.0</h1>
<h1>Color Picker v2.1.1</h1>
<p>Color Picker is a simple JavaScript application that aims to provide custom color picker feature to the web with the most basic appearance and usability.</p>
<hr>
</header>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@taufik-nurrohman/color-picker",
"description": "A simple color picker plugin written in pure JavaScript, for modern browsers.",
"version": "2.1.0",
"description": "A simple color picker application written in pure JavaScript, for modern browsers.",
"version": "2.1.1",
"main": "color-picker.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down

0 comments on commit 18b6399

Please sign in to comment.