Skip to content

Commit 37da655

Browse files
committed
Bumping to v2.1.6
1 parent b9404dd commit 37da655

9 files changed

+33
-17
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## v2.1.6
4+
5+
#### Breaking Changes
6+
* None
7+
8+
#### New Features
9+
* None
10+
11+
#### Bug Fixes
12+
* Bug #92 Fire click would trigger onChange twice
13+
314
## v2.1.5
415

516
#### Breaking Changes

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-color-picker",
33
"description": "Color Picker Directive For AngularJS",
4-
"version": "2.1.5",
4+
"version": "2.1.6",
55
"homepage": "https://github.com/ruhley/angular-color-picker",
66
"repository": {
77
"type": "git",

dist/angularjs-color-picker.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angularjs-color-picker.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*!
2-
* angularjs-color-picker v2.1.5
2+
* angularjs-color-picker v2.1.6
33
* https://github.com/ruhley/angular-color-picker/
44
*
55
* Copyright 2016 ruhley
66
*
7-
* 2016-07-20 07:53:13
7+
* 2016-07-22 08:24:43
88
*
99
*/
1010

@@ -188,7 +188,6 @@
188188
this.android_version = _android_version && _android_version.length > 1 ? parseFloat(_android_version[1]) : NaN;
189189

190190
// needed variables
191-
this.onChangeValue = null;
192191
this.updateModel = true;
193192

194193
//---------------------------
@@ -338,6 +337,12 @@
338337
}, {
339338
key: 'onChange',
340339
value: function onChange(event) {
340+
// on first firing, set this so it doesn't fire twice
341+
if (!this.hasOwnProperty('onChangeValue')) {
342+
this.onChangeValue = this.ngModel;
343+
}
344+
345+
// this can be triggered by both click and mouseup, so don't fire twice
341346
if (this.ngModel !== this.onChangeValue) {
342347
this.onChangeValue = this.ngModel;
343348

dist/angularjs-color-picker.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angularjs-color-picker.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/themes/angularjs-color-picker-bootstrap.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*!
2-
* angularjs-color-picker v2.1.5
2+
* angularjs-color-picker v2.1.6
33
* https://github.com/ruhley/angular-color-picker/
44
*
55
* Copyright 2016 ruhley
66
*
7-
* 2016-07-20 07:53:15
7+
* 2016-07-22 08:24:45
88
*
99
*/
1010
.color-picker-wrapper .color-picker-input-wrapper {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*!
2-
* angularjs-color-picker v2.1.5
2+
* angularjs-color-picker v2.1.6
33
* https://github.com/ruhley/angular-color-picker/
44
*
55
* Copyright 2016 ruhley
66
*
7-
* 2016-07-20 07:53:15
7+
* 2016-07-22 08:24:45
88
*
99
*/.color-picker-wrapper .color-picker-input-wrapper{width:100%}.color-picker-wrapper .color-picker-swatch:not(.input-group-addon){height:28px}.color-picker-wrapper.color-picker-swatch-only .input-group .input-group-addon{border-radius:4px}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angularjs-color-picker",
33
"description": "Color Picker Directive For AngularJS",
4-
"version": "2.1.5",
4+
"version": "2.1.6",
55
"license": "MIT",
66
"main": "dist/angularjs-color-picker.min.js",
77
"dependencies": {
@@ -33,7 +33,7 @@
3333
"rollup": "^0.34.1",
3434
"rollup-plugin-babel": "^2.6.1",
3535
"rollup-plugin-uglify": "^1.0.1",
36-
"time-grunt": "~1.3.0"
36+
"time-grunt": "^1.3.0"
3737
},
3838
"engines": {
3939
"node": ">=4.4.0"

0 commit comments

Comments
 (0)