Fix a couple of code typos.

This commit is contained in:
Jürg Lehni 2012-11-14 18:30:33 -08:00
parent bd8dc0c3de
commit 532a94369e

View file

@ -132,8 +132,8 @@ var Component = this.Component = Base.extend(Callback, /** @lends Component# */{
}, },
getRange: function() { getRange: function() {
return [toFloat(DomElement.get(this._inputItem, 'min')), return [Base.toFloat(DomElement.get(this._inputItem, 'min')),
toFloat(DomElement.get(this._inputItem, 'max'))]; Base.toFloat(DomElement.get(this._inputItem, 'max'))];
}, },
setRange: function(min, max) { setRange: function(min, max) {
@ -142,23 +142,23 @@ var Component = this.Component = Base.extend(Callback, /** @lends Component# */{
}, },
getMin: function() { getMin: function() {
return getRange()[0]; return this.getRange()[0];
}, },
setMin: function(min) { setMin: function(min) {
this.setRange(min, getMax()); this.setRange(min, this.getMax());
}, },
getMax: function() { getMax: function() {
return getRange()[1]; return this.getRange()[1];
}, },
setMax: function(max) { setMax: function(max) {
this.setRange(getMin(), max); this.setRange(this.getMin(), max);
}, },
getStep: function() { getStep: function() {
return toFloat(DomElement.get(this._inputItem, 'step')); return Base.toFloat(DomElement.get(this._inputItem, 'step'));
}, },
setStep: function(step) { setStep: function(step) {