Skip to content

Commit a865ee5

Browse files
committed
makes sure helpers can use path
1 parent 8864805 commit a865ee5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc-map-info.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var path = require("path");
2+
13
var DocMapInfo = function(docMap, getCurrent) {
24
this.docMap = docMap;
35
this.childrenMap = makeChildrenMap(docMap);
@@ -198,8 +200,8 @@ var compareDocObjects = function(child1, child2){
198200
return -1;
199201
}
200202

201-
if(typeof child1.order == "number"){
202-
if(typeof child2.order == "number"){
203+
if(typeof child1.order === "number"){
204+
if(typeof child2.order === "number"){
203205
// same order given?
204206
if(child1.order == child2.order){
205207
// sort by name
@@ -215,7 +217,7 @@ var compareDocObjects = function(child1, child2){
215217
return -1;
216218
}
217219
} else {
218-
if(typeof child2.order == "number"){
220+
if(typeof child2.order === "number"){
219221
return 1;
220222
} else {
221223
// alphabetical

0 commit comments

Comments
 (0)