mirror of https://github.com/adamdruppe/arsd.git
fixed dom.d .dup calls for dmd 2.0.66
This commit is contained in:
parent
bf191b2242
commit
ffa8dc8bd2
10
dom.d
10
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
|
||||
|
|
Loading…
Reference in New Issue