mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Fire onFinishChange if onChange isn't set. This allows 'revert' to function in that case.
This commit is contained in:
parent
8f0eba8ade
commit
c42e55363d
@ -105,6 +105,9 @@ define([
|
||||
if (this.__onChange) {
|
||||
this.__onChange.call(this, newValue);
|
||||
}
|
||||
else if (this.__onFinishChange) {
|
||||
this.__onFinishChange.call(this, newValue);
|
||||
}
|
||||
this.updateDisplay();
|
||||
return this;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user