diff --git a/dom.d b/dom.d index 3ac7217..92e28a8 100644 --- a/dom.d +++ b/dom.d @@ -51,6 +51,7 @@ else { import std.string; +import std.container; // the reason this is separated is so I can plug it into D->JS as well, which uses a different base Element class @@ -1601,7 +1602,7 @@ class Element { } } - auto ret = e.children.dup; + auto ret = std.container.dup(e.children); e.children.length = 0; return ret; @@ -1837,7 +1838,7 @@ class Element { assert(r.parentNode is null); } body { - Element[] oldChildren = children.dup; + Element[] oldChildren = std.container.dup(children); foreach(c; oldChildren) c.parentNode = null; @@ -6044,11 +6045,6 @@ class Utf8Stream { +/ } -void fillForm(T)(Form form, T obj, string name) { - import arsd.database; - fillData((k, v) => form.setValue(k, v), obj, name); -} - /* Copyright: Adam D. Ruppe, 2010 - 2013