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 2149a08..eb744d9 100644 --- a/src/DAT/GUI/Controller.js +++ b/src/DAT/GUI/Controller.js @@ -59,7 +59,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; };