Permalink
Browse files

Realized I really did want push instead of unshift.

  • Loading branch information...
1 parent 34df8b6 commit 1f41f3c85daf148bf345a649ea122350d1d6fd98 @arb arb committed Apr 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/api/traversing.js
View
@@ -18,7 +18,7 @@ var parents = exports.parents = function(selector) {
var elem = this[0].parent,
parents = [];
while (elem.type != 'root') {
- parents.unshift(elem)
+ parents.push(elem)
elem = elem.parent;
}

0 comments on commit 1f41f3c

Please sign in to comment.