From 1abfd057eef421f3f7117c53814acea97ac6dbf8 Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Sun, 9 Aug 2015 22:15:37 -0700 Subject: [PATCH] feat(tabs): add support for `x-tab-heading` - Add support for `x-tab-heading` attribute and element Closes #4166 Fixes #1893 --- src/tabs/tabs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tabs/tabs.js b/src/tabs/tabs.js index 018ff5e4ac..1ee202318e 100644 --- a/src/tabs/tabs.js +++ b/src/tabs/tabs.js @@ -279,11 +279,13 @@ angular.module('ui.bootstrap.tabs', []) } }; function isTabHeading(node) { - return node.tagName && ( + return node.tagName && ( node.hasAttribute('tab-heading') || node.hasAttribute('data-tab-heading') || + node.hasAttribute('x-tab-heading') || node.tagName.toLowerCase() === 'tab-heading' || - node.tagName.toLowerCase() === 'data-tab-heading' + node.tagName.toLowerCase() === 'data-tab-heading' || + node.tagName.toLowerCase() === 'x-tab-heading' ); } })