summaryrefslogtreecommitdiff
path: root/chromium/mojo/public/js/bindings.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/mojo/public/js/bindings.js')
-rw-r--r--chromium/mojo/public/js/bindings.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/chromium/mojo/public/js/bindings.js b/chromium/mojo/public/js/bindings.js
index 44aa9f4e9fe..2fdcae39f30 100644
--- a/chromium/mojo/public/js/bindings.js
+++ b/chromium/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;
-}); \ No newline at end of file
+});