bf0ee5ae by Adam Heath

The incoming data and extraOptions in validateWithBackbone are

effectively read-only.
1 parent b13b51fb
...@@ -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);
......