File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = function(pkg){
21
21
ul . id = 'toc' ;
22
22
23
23
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>' ) ) ;
25
25
26
26
var headings = el . querySelectorAll ( 'h2, h3' ) ;
27
27
Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ module.exports = ErrorView;
22
22
23
23
function ErrorView ( error ) {
24
24
this . error = error ;
25
- this . el = domify ( tmpl ) [ 0 ] ;
25
+ this . el = domify ( tmpl ) ;
26
26
this . view = reactive ( this . el , error , this ) ;
27
27
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = ComponentView;
23
23
24
24
function ComponentView ( pkg ) {
25
25
this . pkg = pkg ;
26
- this . el = domify ( tmpl ) [ 0 ] ;
26
+ this . el = domify ( tmpl ) ;
27
27
this . view = reactive ( this . el , pkg , this ) ;
28
28
pkg . user = ( pkg . repo || '' ) . split ( '/' ) [ 0 ] ;
29
29
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ module.exports = SearchView;
25
25
*/
26
26
27
27
function SearchView ( ) {
28
- this . el = domify ( tmpl ) [ 0 ] ;
28
+ this . el = domify ( tmpl ) ;
29
29
this . view = reactive ( this . el , { } , this ) ;
30
30
this . list = new List ;
31
31
this . el . appendChild ( this . list . el ) ;
You can’t perform that action at this time.
0 commit comments