From 4f95775279a2bea0d687c98e58000672ce270ebf Mon Sep 17 00:00:00 2001 From: Seth Date: Mon, 20 Jun 2011 20:26:51 -0700 Subject: [PATCH] Fixed backbone bugs --- index.html | 2 +- src/DAT/GUI/Controller.js | 2 +- src/DAT/GUI/GUI.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {