From 7f5ebe019362e4c3771144da872bed41d0d28cde Mon Sep 17 00:00:00 2001 From: George Michael Brower Date: Tue, 1 Feb 2011 13:53:14 -0500 Subject: [PATCH] Forgot to add Slider to GUI namespace as well --- controllers/controller.number.js | 2 +- controllers/slider.js | 2 +- index.html | 22 ++-------------------- 3 files changed, 4 insertions(+), 22 deletions(-) diff --git a/controllers/controller.number.js b/controllers/controller.number.js index 24a8582..a20ca8b 100644 --- a/controllers/controller.number.js +++ b/controllers/controller.number.js @@ -38,7 +38,7 @@ GUI.NumberController = function() { var slider; if (min != undefined && max != undefined) { - slider = new Slider(this, min, max, step, this.getValue()); + slider = new GUI.Slider(this, min, max, step, this.getValue()); this.domElement.appendChild(slider.domElement); } diff --git a/controllers/slider.js b/controllers/slider.js index ee2902e..9c7c28e 100644 --- a/controllers/slider.js +++ b/controllers/slider.js @@ -1,4 +1,4 @@ -var Slider = function(numberController, min, max, step, initValue) { +GUI.Slider = function(numberController, min, max, step, initValue) { var min = min; var max = max; diff --git a/index.html b/index.html index 06737e5..b92f577 100644 --- a/index.html +++ b/index.html @@ -9,26 +9,8 @@ - - - - - - - - - - + +