Index: tools/json_schema_compiler/model.py |
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py |
index 6dc87a964ecf9644b3e6c588dc40732d2130ce67..e0147b5b4889fb2a86b59a74648a4deb24316051 100644 |
--- a/tools/json_schema_compiler/model.py |
+++ b/tools/json_schema_compiler/model.py |
@@ -183,7 +183,6 @@ |
self.simple_name = _StripNamespace(self.name, namespace) |
self.unix_name = UnixName(self.name) |
self.description = json.get('description', None) |
- self.jsexterns = json.get('jsexterns', None) |
self.origin = origin |
self.parent = parent |
self.instance_of = json.get('isInstanceOf', None) |
@@ -318,9 +317,8 @@ |
self.filters = [GeneratePropertyFromParam(filter_instance) |
for filter_instance in json.get('filters', [])] |
callback_param = None |
- params = json.get('parameters', []) |
- for i, param in enumerate(params): |
- if param.get('type') == 'function' and i == len(params) - 1: |
+ for param in json.get('parameters', []): |
+ if param.get('type') == 'function': |
if callback_param: |
# No ParseException because the webstore has this. |
# Instead, pretend all intermediate callbacks are properties. |