From 6fc2cb3c7c8459c82accc05b2b41d5a909eacec5 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Wed, 30 Sep 2015 15:38:42 +0200 Subject: Controlgroup: Rename excludeInvisible to onlyVisible Gets rid of the double negative. --- ui/widgets/controlgroup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/widgets/controlgroup.js b/ui/widgets/controlgroup.js index 4fc348e28..5974d51c9 100644 --- a/ui/widgets/controlgroup.js +++ b/ui/widgets/controlgroup.js @@ -36,7 +36,7 @@ return $.widget( "ui.controlgroup", { options: { direction: "horizontal", disabled: null, - excludeInvisible: true, + onlyVisible: true, items: { "button": "input[type=button], input[type=submit], input[type=reset], button, a", "controlgroupLabel": ".ui-controlgroup-label", @@ -209,7 +209,7 @@ return $.widget( "ui.controlgroup", { children = this.childWidgets; // We filter here because we need to track all childWidgets not just the visible ones - if ( this.options.excludeInvisible ) { + if ( this.options.onlyVisible ) { children = children.filter( ":visible" ); } -- cgit v1.2.3