Permalink
Browse files

Modified parentsUntil

  • Loading branch information...
1 parent 6242d46 commit 16b0b870ea15e7e515b47d5d014dd01e153565c7 @tommy351 committed Sep 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/qfs.js
View
@@ -229,13 +229,13 @@ qfs.fn.parentsUntil = function(name){
parents = [];
while (i){
- var dir = dirs.join(sep);
- parents.push(dir ? dir : sep);
-
if (dirs[i - 1] === name){
break;
}
+ var dir = dirs.join(sep);
+ parents.push(dir ? dir : sep);
+
dirs.pop();
i--;
}

0 comments on commit 16b0b87

Please sign in to comment.