mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Fixed backbone bugs
This commit is contained in:
parent
f00d4cc957
commit
4f95775279
@ -139,7 +139,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<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>
|
||||
</li>
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user