| Index: mojo/public/js/bindings.js
|
| diff --git a/mojo/public/js/bindings.js b/mojo/public/js/bindings.js
|
| index 44aa9f4e9fed6529dbfa495db9712c939e01d38e..2fdcae39f30d17114602f3602299670eed5c1884 100644
|
| --- a/mojo/public/js/bindings.js
|
| +++ b/mojo/public/js/bindings.js
|
| @@ -31,17 +31,8 @@ define("mojo/public/js/bindings", [
|
| throw new Error("no stub object");
|
| }
|
|
|
| - function connectionHandle(connection) {
|
| - return connection &&
|
| - connection.router &&
|
| - connection.router.connector_ &&
|
| - connection.router.connector_.handle_;
|
| - }
|
| -
|
| ProxyProperties.prototype.close = function() {
|
| - var handle = connectionHandle(this.connection);
|
| - if (handle)
|
| - core.close(handle);
|
| + this.connection.close();
|
| }
|
|
|
| // Public stub class properties that are managed at runtime by the JS
|
| @@ -51,9 +42,7 @@ define("mojo/public/js/bindings", [
|
| }
|
|
|
| StubProperties.prototype.close = function() {
|
| - var handle = connectionHandle(this.connection);
|
| - if (handle)
|
| - core.close(handle);
|
| + this.connection.close();
|
| }
|
|
|
| // The base class for generated proxy classes.
|
| @@ -125,4 +114,4 @@ define("mojo/public/js/bindings", [
|
| exports.StubBase = StubBase;
|
| exports.StubBindings = StubBindings;
|
| return exports;
|
| -});
|
| +});
|
|
|