Fixed backbone bugs

This commit is contained in:
Seth 2011-06-20 20:26:51 -07:00
parent f00d4cc957
commit 4f95775279
3 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@
</li> </li>
<li> <li>
<a href='https://github.com/dataarts/dat.gui/raw/build/DAT.GUI.js'><strong>Download the uncompressed source</strong></a> <a href='https://github.com/dataarts/dat.gui/raw/build/DAT.GUI.js'><strong>Download the uncompressed source</strong></a>
<small id='buildsize'>[33.8kb] <small id='buildsize'>[33.9kb]
</small> </small>
</li> </li>

View File

@ -58,7 +58,7 @@ DAT.GUI.Controller.prototype.setValue = function(n) {
DAT.GUI.Controller.prototype.getValue = function() { DAT.GUI.Controller.prototype.getValue = function() {
var val = this.object[this.propertyName]; 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; return val;
}; };

View File

@ -307,7 +307,7 @@ DAT.GUI = function(parameters) {
} }
var value = object[propertyName]; 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? // Does this value exist? Is it accessible?
if (value == undefined) { if (value == undefined) {