Shift instead of pop nodes when yielding all nodes

This commit is contained in:
Yorick Peterse 2014-08-01 19:00:29 +02:00
parent 34e2d28bbd
commit c419d8849b
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module Oga
index = 0
until visit.empty?
current = visit.pop
current = visit.shift
yield current, index