diff --git a/index.html b/index.html index 15cb0c7..1192513 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@
  • Download the uncompressed source - [33.8kb] + [33.9kb]
  • diff --git a/src/DAT/GUI/Controller.js b/src/DAT/GUI/Controller.js index 1e41a82..5ee6249 100644 --- a/src/DAT/GUI/Controller.js +++ b/src/DAT/GUI/Controller.js @@ -58,7 +58,7 @@ DAT.GUI.Controller.prototype.setValue = function(n) { DAT.GUI.Controller.prototype.getValue = function() { var val = this.object[this.propertyName]; - if(val == undefined) this.object.get(this.propertyName); + if(val == undefined) val = this.object.get(this.propertyName); return val; }; diff --git a/src/DAT/GUI/GUI.js b/src/DAT/GUI/GUI.js index fa098be..ea49f8b 100644 --- a/src/DAT/GUI/GUI.js +++ b/src/DAT/GUI/GUI.js @@ -307,7 +307,7 @@ DAT.GUI = function(parameters) { } var value = object[propertyName]; - if(value == undefined && object.get) value = object.get(propertyName)); + if(value == undefined && object.get) value = object.get(propertyName); // Does this value exist? Is it accessible? if (value == undefined) {