diff options
| author | Vojta Jina | 2011-07-26 23:16:39 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-07-26 14:20:24 -0700 |
| commit | 00ea08e0ab2a0154e168e63f2505d885bbca9096 (patch) | |
| tree | 9033b4dbf0ee1b840742668e725a6af42c774241 /docs/src/templates/doc_widgets.js | |
| parent | 31b59efa961e8729a0153d7d6ea5e300d7db17f2 (diff) | |
| download | angular.js-00ea08e0ab2a0154e168e63f2505d885bbca9096.tar.bz2 | |
doc(tutorial): fix navigation widget to work without jQuery
jqLite doesn't support class selectors, can find only by tag name...
Diffstat (limited to 'docs/src/templates/doc_widgets.js')
| -rw-r--r-- | docs/src/templates/doc_widgets.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js index c995857c..fd71396e 100644 --- a/docs/src/templates/doc_widgets.js +++ b/docs/src/templates/doc_widgets.js @@ -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) { |
