Apparently this boolean needs to be set explicitly; also, whitespace fix.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6228 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -121,9 +121,10 @@ public class GenDObjectTask extends GenTask
|
|||||||
data.put("transport", transport);
|
data.put("transport", transport);
|
||||||
|
|
||||||
// if this field is an array, we need its component types
|
// if this field is an array, we need its component types
|
||||||
if (ftype.isArray()) {
|
boolean array = ftype.isArray();
|
||||||
|
data.put("have_elem", array);
|
||||||
|
if (array) {
|
||||||
Class<?> etype = ftype.getComponentType();
|
Class<?> etype = ftype.getComponentType();
|
||||||
data.put("have_elem", true);
|
|
||||||
data.put("elemtype", GenUtil.simpleName(etype));
|
data.put("elemtype", GenUtil.simpleName(etype));
|
||||||
data.put("wrapelem", GenUtil.boxArgument(etype, "value"));
|
data.put("wrapelem", GenUtil.boxArgument(etype, "value"));
|
||||||
data.put("wrapoelem", GenUtil.boxArgument(etype, "ovalue"));
|
data.put("wrapoelem", GenUtil.boxArgument(etype, "ovalue"));
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
requestAttributeChange(
|
requestAttributeChange(
|
||||||
{{capfield}}, {{wrapfield}}, {{wrapofield}}{{transport}});
|
{{capfield}}, {{wrapfield}}, {{wrapofield}}{{transport}});
|
||||||
this.{{field}} = {{clonefield}};
|
this.{{field}} = {{clonefield}};
|
||||||
}{{#have_elem}}
|
}
|
||||||
|
{{#have_elem}}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requests that the <code>index</code>th element of
|
* Requests that the <code>index</code>th element of
|
||||||
@@ -31,4 +32,5 @@
|
|||||||
requestElementUpdate(
|
requestElementUpdate(
|
||||||
{{capfield}}, index, {{wrapelem}}, {{wrapoelem}}{{transport}});
|
{{capfield}}, index, {{wrapelem}}, {{wrapoelem}}{{transport}});
|
||||||
this.{{field}}[index] = value;
|
this.{{field}}[index] = value;
|
||||||
}{{/have_elem}}
|
}
|
||||||
|
{{/have_elem}}
|
||||||
|
|||||||
Reference in New Issue
Block a user