This commit is contained in:
Don McCurdy 2020-04-03 22:29:37 -07:00
parent b7e28a67f4
commit b0c59d6a71
7 changed files with 11 additions and 9 deletions

View File

@ -186,7 +186,7 @@ var Common = {
return obj === false || obj === true;
},
isFunction: function isFunction(obj) {
return Object.prototype.toString.call(obj) === '[object Function]';
return obj instanceof Function;
}
};
@ -684,8 +684,9 @@ Object.defineProperty(Color.prototype, 'a', {
});
Object.defineProperty(Color.prototype, 'hex', {
get: function get$$1() {
if (!this.__state.space !== 'HEX') {
if (this.__state.space !== 'HEX') {
this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b);
this.__state.space = 'HEX';
}
return this.__state.hex;
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -180,7 +180,7 @@ var Common = {
return obj === false || obj === true;
},
isFunction: function isFunction(obj) {
return Object.prototype.toString.call(obj) === '[object Function]';
return obj instanceof Function;
}
};
@ -678,8 +678,9 @@ Object.defineProperty(Color.prototype, 'a', {
});
Object.defineProperty(Color.prototype, 'hex', {
get: function get$$1() {
if (!this.__state.space !== 'HEX') {
if (this.__state.space !== 'HEX') {
this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b);
this.__state.space = 'HEX';
}
return this.__state.hex;
},

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "dat.gui",
"version": "0.7.6",
"version": "0.7.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "dat.gui",
"version": "0.7.6",
"version": "0.7.7",
"description": "A lightweight graphical user interface for changing variables in JavaScript.",
"main": "build/dat.gui.js",
"module": "build/dat.gui.module.js",