mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Removed redundant code.
This commit is contained in:
parent
92a13fd869
commit
ece6c521f8
29
src/gui.js
29
src/gui.js
@ -168,8 +168,6 @@ DAT.GUI = function(parameters) {
|
||||
}
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
document.removeEventListener('mousemove', resize, false);
|
||||
e.preventDefault();
|
||||
@ -184,11 +182,8 @@ DAT.GUI = function(parameters) {
|
||||
this.domElement.appendChild(toggleButton);
|
||||
|
||||
if (parameters.domElement) {
|
||||
DAT.GUI.autoPlace = false;
|
||||
parameters.domElement.appendChild(this.domElement);
|
||||
}
|
||||
|
||||
if (DAT.GUI.autoPlace) {
|
||||
} else if (DAT.GUI.autoPlace) {
|
||||
if (DAT.GUI.autoPlaceContainer == null) {
|
||||
DAT.GUI.autoPlaceContainer = document.createElement('div');
|
||||
DAT.GUI.autoPlaceContainer.setAttribute("id", "guidat");
|
||||
@ -260,7 +255,6 @@ DAT.GUI = function(parameters) {
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
var construct = function(constructor, args) {
|
||||
function F() {
|
||||
return constructor.apply(this, args);
|
||||
@ -355,28 +349,9 @@ DAT.GUI = function(parameters) {
|
||||
"function": DAT.GUI.FunctionController
|
||||
};
|
||||
|
||||
var alreadyControlled = function(object, propertyName) {
|
||||
for (var i in controllers) {
|
||||
if (controllers[i].object == object &&
|
||||
controllers[i].propertyName == propertyName) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
var construct = function(constructor, args) {
|
||||
|
||||
function F() {
|
||||
return constructor.apply(this, args);
|
||||
}
|
||||
|
||||
F.prototype = constructor.prototype;
|
||||
return new F();
|
||||
};
|
||||
|
||||
this.reset = function() {
|
||||
// TODO
|
||||
// TODO ... Set all values back to their initials.
|
||||
}
|
||||
|
||||
// DAT.GUI ... DAT.GUI
|
||||
|
Loading…
Reference in New Issue
Block a user