From 532a94369ec267f3b7e65eb77877051f561ad265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 14 Nov 2012 18:30:33 -0800 Subject: [PATCH] Fix a couple of code typos. --- src/ui/Component.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ui/Component.js b/src/ui/Component.js index 81761889..e751ba51 100644 --- a/src/ui/Component.js +++ b/src/ui/Component.js @@ -132,8 +132,8 @@ var Component = this.Component = Base.extend(Callback, /** @lends Component# */{ }, getRange: function() { - return [toFloat(DomElement.get(this._inputItem, 'min')), - toFloat(DomElement.get(this._inputItem, 'max'))]; + return [Base.toFloat(DomElement.get(this._inputItem, 'min')), + Base.toFloat(DomElement.get(this._inputItem, 'max'))]; }, setRange: function(min, max) { @@ -142,23 +142,23 @@ var Component = this.Component = Base.extend(Callback, /** @lends Component# */{ }, getMin: function() { - return getRange()[0]; + return this.getRange()[0]; }, setMin: function(min) { - this.setRange(min, getMax()); + this.setRange(min, this.getMax()); }, getMax: function() { - return getRange()[1]; + return this.getRange()[1]; }, setMax: function(max) { - this.setRange(getMin(), max); + this.setRange(this.getMin(), max); }, getStep: function() { - return toFloat(DomElement.get(this._inputItem, 'step')); + return Base.toFloat(DomElement.get(this._inputItem, 'step')); }, setStep: function(step) {