mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
added name function mapping for NumberControllerBox
This commit is contained in:
parent
a65c4f9b38
commit
d3121a6676
@ -927,7 +927,7 @@ define([
|
|||||||
var box = new NumberControllerBox(controller.object, controller.property,
|
var box = new NumberControllerBox(controller.object, controller.property,
|
||||||
{ min: controller.__min, max: controller.__max, step: controller.__step });
|
{ min: controller.__min, max: controller.__max, step: controller.__step });
|
||||||
|
|
||||||
common.each(['updateDisplay', 'onChange', 'onFinishChange'], function(method) {
|
common.each(['updateDisplay', 'onChange', 'onFinishChange', 'name'], function(method) {
|
||||||
var pc = controller[method];
|
var pc = controller[method];
|
||||||
var pb = box[method];
|
var pb = box[method];
|
||||||
controller[method] = box[method] = function() {
|
controller[method] = box[method] = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user