mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Merged in mr doobs changes for watchers and changed setName to name
This commit is contained in:
parent
fe172c75fb
commit
f736507fd4
@ -4,7 +4,7 @@ var Controller = function() {
|
|||||||
|
|
||||||
this.parent = null;
|
this.parent = null;
|
||||||
|
|
||||||
this.setName = function(n) {
|
this.name = function(n) {
|
||||||
this.propertyNameElement.innerHTML = n;
|
this.propertyNameElement.innerHTML = n;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ var Controller = function() {
|
|||||||
|
|
||||||
this.propertyNameElement = document.createElement('span');
|
this.propertyNameElement = document.createElement('span');
|
||||||
this.propertyNameElement.setAttribute('class', 'guidat-propertyname');
|
this.propertyNameElement.setAttribute('class', 'guidat-propertyname');
|
||||||
this.setName(this.propertyName);
|
this.name(this.propertyName);
|
||||||
this.domElement.appendChild(this.propertyNameElement);
|
this.domElement.appendChild(this.propertyNameElement);
|
||||||
|
|
||||||
this.makeUnselectable(this.domElement);
|
this.makeUnselectable(this.domElement);
|
||||||
|
Loading…
Reference in New Issue
Block a user