The incoming data and extraOptions in validateWithBackbone are
effectively read-only.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -55,7 +55,7 @@ public class Require { | ... | @@ -55,7 +55,7 @@ public class Require { |
55 | }); | 55 | }); |
56 | } | 56 | } |
57 | 57 | ||
58 | public Map<String, Object> validateWithBackbone(String moduleId, String preInitEval, Map<String, Object> data, Map<String, Object> extraOptions) throws Exception { | 58 | public Map<String, Object> validateWithBackbone(String moduleId, String preInitEval, Map<String, ? extends Object> data, Map<String, ? extends Object> extraOptions) throws Exception { |
59 | Function modelClass = require(moduleId); | 59 | Function modelClass = require(moduleId); |
60 | Scriptable modelInstance = container.newObject(modelClass); | 60 | Scriptable modelInstance = container.newObject(modelClass); |
61 | container.eval(loader, preInitEval, modelInstance); | 61 | container.eval(loader, preInitEval, modelInstance); | ... | ... |
-
Please register or sign in to post a comment