Skip to content

Commit df80c66

Browse files
committed
Fix folder renaming. (fixes #196)
1 parent 642af14 commit df80c66

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dat/gui/GUI.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ const GUI = function(pars) {
177177
localStorage.getItem(getLocalStorageHash(this, 'isLocal')) === 'true';
178178

179179
let saveToLocalStorage;
180+
let titleRow;
180181

181182
Object.defineProperties(this,
182183
/** @lends GUI.prototype */
@@ -267,8 +268,8 @@ const GUI = function(pars) {
267268
set: function(v) {
268269
// TODO Check for collisions among sibling folders
269270
params.name = v;
270-
if (titleRowName) {
271-
titleRowName.innerHTML = params.name;
271+
if (titleRow) {
272+
titleRow.innerHTML = params.name;
272273
}
273274
}
274275
},
@@ -376,7 +377,7 @@ const GUI = function(pars) {
376377
const titleRowName = document.createTextNode(params.name);
377378
dom.addClass(titleRowName, 'controller-name');
378379

379-
const titleRow = addRow(_this, titleRowName);
380+
titleRow = addRow(_this, titleRowName);
380381

381382
const onClickTitle = function(e) {
382383
e.preventDefault();

0 commit comments

Comments
 (0)