fix slider modifier function to return correct controller

onFinishChange(), onChange(), and step() were returning the NumberBoxController instead of NumberSliderController
This commit is contained in:
Jeff Nusz 2016-08-18 14:18:15 -07:00
parent f741e650c9
commit 66aa8fe153

View File

@ -824,8 +824,8 @@ function augmentController(gui, li, controller) {
const pb = box[method];
controller[method] = box[method] = function() {
const args = Array.prototype.slice.call(arguments);
pc.apply(controller, args);
return pb.apply(box, args);
pb.apply(box, args);
return pc.apply(controller, args);
};
});