mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Fix a couple of code typos.
This commit is contained in:
parent
bd8dc0c3de
commit
532a94369e
1 changed files with 7 additions and 7 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue