Skip to content

Commit b91772c

Browse files
committed
fire onFinishChange when doing a revert() #103
1 parent ca19030 commit b91772c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dat/gui/GUI.js

+5
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,11 @@ common.extend(
707707
} else {
708708
recallSavedValue(gui || this.getRoot(), controller);
709709
}
710+
711+
// fire onFinishChange callback
712+
if (controller.__onFinishChange) {
713+
controller.__onFinishChange.call(controller, controller.getValue());
714+
}
710715
}, this);
711716

712717
common.each(this.__folders, function(folder) {

0 commit comments

Comments
 (0)