summaryrefslogtreecommitdiff
path: root/skins/Vector/collapsibleTabs.js
diff options
context:
space:
mode:
Diffstat (limited to 'skins/Vector/collapsibleTabs.js')
-rw-r--r--skins/Vector/collapsibleTabs.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/skins/Vector/collapsibleTabs.js b/skins/Vector/collapsibleTabs.js
index 6fd8c496..da860ca1 100644
--- a/skins/Vector/collapsibleTabs.js
+++ b/skins/Vector/collapsibleTabs.js
@@ -14,8 +14,7 @@
this.each( function () {
var $el = $( this );
// add the element to our array of collapsible managers
- $.collapsibleTabs.instances = ( $.collapsibleTabs.instances.length === 0 ?
- $el : $.collapsibleTabs.instances.add( $el ) );
+ $.collapsibleTabs.instances = $.collapsibleTabs.instances.add( $el );
// attach the settings to the elements
$el.data( 'collapsibleTabsSettings', settings );
// attach data to our collapsible elements
@@ -37,7 +36,7 @@
return this;
};
$.collapsibleTabs = {
- instances: [],
+ instances: $( [] ),
boundEvent: null,
defaults: {
expandedContainer: '#p-views ul',