Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified parentsUntil

  • Loading branch information...
commit 16b0b870ea15e7e515b47d5d014dd01e153565c7 1 parent 6242d46
@tommy351 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/qfs.js
View
6 lib/qfs.js
@@ -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--;
}
Please sign in to comment.
Something went wrong with that request. Please try again.