Correctly name boolean getters.

This commit is contained in:
Jürg Lehni 2014-10-07 23:41:26 +02:00
parent c405c78d41
commit a92b8eb591
2 changed files with 3 additions and 3 deletions

View file

@ -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;
}, },

View file

@ -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;