From a92b8eb591879ec65659d65c3c0d3a3760af7223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 7 Oct 2014 23:41:26 +0200 Subject: [PATCH] Correctly name boolean getters. --- src/ui/Component.js | 4 ++-- src/ui/Palette.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/Component.js b/src/ui/Component.js index 9255b7e6..48303f60 100644 --- a/src/ui/Component.js +++ b/src/ui/Component.js @@ -351,7 +351,7 @@ var Component = Base.extend(Callback, /** @lends Component# */{ setOptions.call(this); }, - getVisible: function() { + isVisible: function() { return this._visible; }, @@ -363,7 +363,7 @@ var Component = Base.extend(Callback, /** @lends Component# */{ this._visible = !!visible; }, - getEnabled: function() { + isEnabled: function() { return this._enabled; }, diff --git a/src/ui/Palette.js b/src/ui/Palette.js index b028ac5e..ce0e5226 100644 --- a/src/ui/Palette.js +++ b/src/ui/Palette.js @@ -92,7 +92,7 @@ palettes.splice(index, 1); return remove; } -}, Base.each(['getTitle', 'setTitle', 'getEnabled', 'setEnabled', 'reset'], +}, Base.each(['getTitle', 'setTitle', 'isEnabled', 'setEnabled', 'reset'], function(name) { this[name] = function() { var root = this._root;