This commit is contained in:
Don McCurdy 2018-10-06 21:47:16 -07:00
parent df80c663f8
commit a1547d0f21
7 changed files with 17 additions and 15 deletions

View File

@ -1725,6 +1725,7 @@ var GUI = function GUI(pars) {
} }
var useLocalStorage = SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(this, 'isLocal')) === 'true'; var useLocalStorage = SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(this, 'isLocal')) === 'true';
var saveToLocalStorage = void 0; var saveToLocalStorage = void 0;
var titleRow = void 0;
Object.defineProperties(this, Object.defineProperties(this,
{ {
parent: { parent: {
@ -1779,8 +1780,8 @@ var GUI = function GUI(pars) {
}, },
set: function set$$1(v) { set: function set$$1(v) {
params.name = v; params.name = v;
if (titleRowName) { if (titleRow) {
titleRowName.innerHTML = params.name; titleRow.innerHTML = params.name;
} }
} }
}, },
@ -1853,9 +1854,9 @@ var GUI = function GUI(pars) {
if (params.closed === undefined) { if (params.closed === undefined) {
params.closed = true; params.closed = true;
} }
var _titleRowName = document.createTextNode(params.name); var titleRowName = document.createTextNode(params.name);
dom.addClass(_titleRowName, 'controller-name'); dom.addClass(titleRowName, 'controller-name');
var titleRow = addRow(_this, _titleRowName); titleRow = addRow(_this, titleRowName);
var onClickTitle = function onClickTitle(e) { var onClickTitle = function onClickTitle(e) {
e.preventDefault(); e.preventDefault();
_this.closed = !_this.closed; _this.closed = !_this.closed;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1719,6 +1719,7 @@ var GUI = function GUI(pars) {
} }
var useLocalStorage = SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(this, 'isLocal')) === 'true'; var useLocalStorage = SUPPORTS_LOCAL_STORAGE && localStorage.getItem(getLocalStorageHash(this, 'isLocal')) === 'true';
var saveToLocalStorage = void 0; var saveToLocalStorage = void 0;
var titleRow = void 0;
Object.defineProperties(this, Object.defineProperties(this,
{ {
parent: { parent: {
@ -1773,8 +1774,8 @@ var GUI = function GUI(pars) {
}, },
set: function set$$1(v) { set: function set$$1(v) {
params.name = v; params.name = v;
if (titleRowName) { if (titleRow) {
titleRowName.innerHTML = params.name; titleRow.innerHTML = params.name;
} }
} }
}, },
@ -1847,9 +1848,9 @@ var GUI = function GUI(pars) {
if (params.closed === undefined) { if (params.closed === undefined) {
params.closed = true; params.closed = true;
} }
var _titleRowName = document.createTextNode(params.name); var titleRowName = document.createTextNode(params.name);
dom.addClass(_titleRowName, 'controller-name'); dom.addClass(titleRowName, 'controller-name');
var titleRow = addRow(_this, _titleRowName); titleRow = addRow(_this, titleRowName);
var onClickTitle = function onClickTitle(e) { var onClickTitle = function onClickTitle(e) {
e.preventDefault(); e.preventDefault();
_this.closed = !_this.closed; _this.closed = !_this.closed;

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", "name": "dat.gui",
"version": "0.7.2", "version": "0.7.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

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