| Index: mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl b/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| index 6eb1ea272ac8205dcc96f41812fa6a7f063deb8a..eb73532d75921af310e37c9e2adbda83474153e4 100644
|
| --- a/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl
|
| @@ -8,9 +8,8 @@
|
| }
|
|
|
| function {{interface.name}}Proxy(receiver) {
|
| - bindings.ProxyBase.call(this, receiver);
|
| + this.receiver_ = receiver;
|
| }
|
| - {{interface.name}}Proxy.prototype = Object.create(bindings.ProxyBase.prototype);
|
|
|
| {%- for method in interface.methods %}
|
| {{interface.name}}Ptr.prototype.{{method.name|stylize_method}} = function() {
|
| @@ -57,15 +56,13 @@
|
| {%- endfor %}
|
|
|
| function {{interface.name}}Stub(delegate) {
|
| - bindings.StubBase.call(this, delegate);
|
| + this.delegate_ = delegate;
|
| }
|
| - {{interface.name}}Stub.prototype = Object.create(bindings.StubBase.prototype);
|
|
|
| {%- for method in interface.methods %}
|
| {%- set js_method_name = method.name|stylize_method %}
|
| -{%- set delegate_expr = "bindings.StubBindings(this).delegate" %}
|
| {{interface.name}}Stub.prototype.{{js_method_name}} = function({{method.parameters|map(attribute='name')|join(', ')}}) {
|
| - return {{delegate_expr}} && {{delegate_expr}}.{{js_method_name}} && {{delegate_expr}}.{{js_method_name}}({{method.parameters|map(attribute='name')|join(', ')}});
|
| + return this.delegate_ && this.delegate_.{{js_method_name}} && this.delegate_.{{js_method_name}}({{method.parameters|map(attribute='name')|join(', ')}});
|
| }
|
| {%- endfor %}
|
|
|
|
|