From 3077ffe7632b8481fdd0053d6c91079d3b633b76 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 22 May 2013 09:19:57 -0400 Subject: [PATCH] ref --- dom.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom.d b/dom.d index 9b93b43..366152b 100644 --- a/dom.d +++ b/dom.d @@ -1497,7 +1497,7 @@ class Element { //assert(isInArray(child, children)); } body { - foreach(i, c; children) { + foreach(ref i, c; children) { if(c is where) { i++; children = children[0..i] ~ child ~ children[i..$];