File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Top Open diff view settings Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Top Open diff view settings Original file line number Diff line number Diff line change 1+ var path = require ( "path" ) ;
2+
13var 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
You can’t perform that action at this time.
0 commit comments