diff --git a/lib/bh.js b/lib/bh.js index accda9d..9c21247 100644 --- a/lib/bh.js +++ b/lib/bh.js @@ -890,7 +890,7 @@ BH.prototype = { } Ctx.prototype = this.utils; var ctx = new Ctx(); - while (node = nodes.shift()) { + while (node = nodes.pop()) { json = node.json; block = node.block; blockMods = node.mods;