doc(tutorial): fix navigation widget to work without jQuery

jqLite doesn't support class selectors, can find only by tag name...
This commit is contained in:
Vojta Jina 2011-07-26 23:16:39 +02:00 committed by Igor Minar
parent 31b59efa96
commit 00ea08e0ab

View file

@ -146,8 +146,9 @@
this.descend(true);
var tabs = angular.element(HTML_TPL.replace('{show}', element.attr('show') || 'false')),
nav = tabs.find('.tabs-nav ul'),
content = tabs.find('.tabs-content-inner'),
nav = tabs.find('ul'),
// use simple selectors because jqLite find() supports getElementsByTagName only
content = tabs.find('div').find('div'),
children = element.children();
if (children.length) {