mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Correctly name boolean getters.
This commit is contained in:
parent
c405c78d41
commit
a92b8eb591
2 changed files with 3 additions and 3 deletions
|
@ -351,7 +351,7 @@ var Component = Base.extend(Callback, /** @lends Component# */{
|
||||||
setOptions.call(this);
|
setOptions.call(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
getVisible: function() {
|
isVisible: function() {
|
||||||
return this._visible;
|
return this._visible;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ var Component = Base.extend(Callback, /** @lends Component# */{
|
||||||
this._visible = !!visible;
|
this._visible = !!visible;
|
||||||
},
|
},
|
||||||
|
|
||||||
getEnabled: function() {
|
isEnabled: function() {
|
||||||
return this._enabled;
|
return this._enabled;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
palettes.splice(index, 1);
|
palettes.splice(index, 1);
|
||||||
return remove;
|
return remove;
|
||||||
}
|
}
|
||||||
}, Base.each(['getTitle', 'setTitle', 'getEnabled', 'setEnabled', 'reset'],
|
}, Base.each(['getTitle', 'setTitle', 'isEnabled', 'setEnabled', 'reset'],
|
||||||
function(name) {
|
function(name) {
|
||||||
this[name] = function() {
|
this[name] = function() {
|
||||||
var root = this._root;
|
var root = this._root;
|
||||||
|
|
Loading…
Reference in a new issue