File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,16 @@ function makeHeadingId(text) {
60
60
function makeTreeData ( elements ) {
61
61
var ids = { } ;
62
62
var map = [ ] . map ;
63
+
64
+ // Get elements without [data-skip] attribute only
63
65
elements = elements . filter ( function ( element ) {
64
- // for testing
66
+ // check if element has attributes ( for testing)
65
67
if ( element . attributes ) {
66
68
return ! element . attributes [ 'data-skip' ] ;
67
69
}
68
70
return true ;
69
71
} ) ;
72
+
70
73
return map . call ( elements , function ( element ) {
71
74
var text = element . textContent ;
72
75
var id = element . id || makeHeadingId ( text ) ;
Original file line number Diff line number Diff line change 38
38
"jshint" : " ^2.9.4" ,
39
39
"steal" : " ^0.16.41" ,
40
40
"steal-mocha" : " 0.0.3" ,
41
- "testee" : " ^0.3.0-pre.2 "
41
+ "testee" : " ^0.9.1 "
42
42
}
43
43
}
You can’t perform that action at this time.
0 commit comments