Skip to content

Commit 65873a3

Browse files
committed
fix for latest domify()
1 parent a4dfc10 commit 65873a3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/component/menu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function(pkg){
2121
ul.id = 'toc';
2222

2323
var url = 'https://github.com/' + pkg.user + '/' + pkg.repo;
24-
ul.appendChild(domify('<li><a href="' + url + '">GitHub Repo</a></li>')[0]);
24+
ul.appendChild(domify('<li><a href="' + url + '">GitHub Repo</a></li>'));
2525

2626
var headings = el.querySelectorAll('h2, h3');
2727

lib/error/view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ module.exports = ErrorView;
2222

2323
function ErrorView(error) {
2424
this.error = error;
25-
this.el = domify(tmpl)[0];
25+
this.el = domify(tmpl);
2626
this.view = reactive(this.el, error, this);
2727
}

lib/list/view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = ComponentView;
2323

2424
function ComponentView(pkg) {
2525
this.pkg = pkg;
26-
this.el = domify(tmpl)[0];
26+
this.el = domify(tmpl);
2727
this.view = reactive(this.el, pkg, this);
2828
pkg.user = (pkg.repo || '').split('/')[0];
2929
}

lib/search/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = SearchView;
2525
*/
2626

2727
function SearchView() {
28-
this.el = domify(tmpl)[0];
28+
this.el = domify(tmpl);
2929
this.view = reactive(this.el, {}, this);
3030
this.list = new List;
3131
this.el.appendChild(this.list.el);

0 commit comments

Comments
 (0)