From 66aa8fe153f91cecdb5611edccb99f9014a87496 Mon Sep 17 00:00:00 2001 From: Jeff Nusz Date: Thu, 18 Aug 2016 14:18:15 -0700 Subject: [PATCH] fix slider modifier function to return correct controller onFinishChange(), onChange(), and step() were returning the NumberBoxController instead of NumberSliderController --- src/dat/gui/GUI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index 70cd01d..304650f 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -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); }; });