Skip to content

Commit e659ddb

Browse files
Bumping to v0.6.10
1 parent a53fdb0 commit e659ddb

File tree

7 files changed

+23
-21
lines changed

7 files changed

+23
-21
lines changed

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.

angularjs-color-picker.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*!
2-
* angular-color-picker v0.6.9
2+
* angularjs-color-picker v0.6.10
33
* https://github.com/ruhley/angular-color-picker/
44
*
55
* Copyright 2015 ruhley
66
*
7-
* 2015-10-19 08:20:21
7+
* 2015-11-10 08:35:04
88
*
99
*/
1010
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
@@ -55,12 +55,14 @@ if (typeof module !== "undefined" && typeof exports !== "undefined" && module.ex
5555
}
5656
$scope.initConfig();
5757

58-
$document.on('click', function (evt) {
59-
if ($scope.find(evt.target).length === 0) {
60-
$scope.log('Color Picker: Document Click Event');
61-
$scope.hide();
62-
}
63-
});
58+
$document.on('click', $scope.onClick);
59+
};
60+
61+
$scope.onClick = function(event) {
62+
if ($scope.find(event.target).length === 0) {
63+
$scope.log('Color Picker: Document Click Event');
64+
$scope.hide();
65+
}
6466
};
6567

6668
$scope.initConfig = function() {
@@ -437,7 +439,7 @@ if (typeof module !== "undefined" && typeof exports !== "undefined" && module.ex
437439
$scope.init();
438440

439441
$scope.$on('$destroy', function() {
440-
$document.off('click');
442+
$document.off('click', $scope.onClick);
441443
});
442444
}
443445
};

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.

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.

angularjs-color-picker.min.map

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

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": "0.6.9",
4+
"version": "0.6.10",
55
"homepage": "https://github.com/ruhley/angular-color-picker",
66
"repository": {
77
"type": "git",

package.json

Lines changed: 3 additions & 3 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": "0.6.9",
4+
"version": "0.6.10",
55
"main": [
66
"angularjs-color-picker.js",
77
"angularjs-color-picker.css"
@@ -24,8 +24,8 @@
2424
"grunt-contrib-concat": "~0.5.1",
2525
"grunt-contrib-cssmin": "~0.14.0",
2626
"grunt-contrib-jshint": "~0.11.0",
27-
"grunt-contrib-less": "~1.0.0",
28-
"grunt-contrib-uglify": "~0.9.0",
27+
"grunt-contrib-less": "~1.1.0",
28+
"grunt-contrib-uglify": "~0.10.0",
2929
"grunt-karma": "~0.12.0",
3030
"grunt-notify": "~0.4.1",
3131
"load-grunt-tasks": "~3.3.0",

0 commit comments

Comments
 (0)