mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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:
parent
31b59efa96
commit
00ea08e0ab
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue