Index: mojo/public/js/bindings.js |
diff --git a/mojo/public/js/bindings.js b/mojo/public/js/bindings.js |
index f3e40d293ebb025f4bf3c8a3c4e01c81626b5aa4..1f7fba74d7ddd7ed3c4622f68c00218075c8c12b 100644 |
--- a/mojo/public/js/bindings.js |
+++ b/mojo/public/js/bindings.js |
@@ -3,16 +3,15 @@ |
// found in the LICENSE file. |
define("mojo/public/js/bindings", [ |
- "mojo/public/js/core", |
"mojo/public/js/lib/control_message_proxy", |
"mojo/public/js/interface_types", |
"mojo/public/js/router", |
-], function(core, controlMessageProxy, types, router) { |
+], function(controlMessageProxy, types, router) { |
// --------------------------------------------------------------------------- |
function makeRequest(interfacePtr) { |
- var pipe = core.createMessagePipe(); |
+ var pipe = Mojo.createMessagePipe(); |
interfacePtr.ptr.bind(new types.InterfacePtrInfo(pipe.handle0, 0)); |
return new types.InterfaceRequest(pipe.handle1); |
} |
@@ -64,7 +63,7 @@ define("mojo/public/js/bindings", [ |
this.proxy_ = null; |
} |
if (this.handle_) { |
- core.close(this.handle_); |
+ this.handle_.close(); |
this.handle_ = null; |
} |
}; |
@@ -181,7 +180,7 @@ define("mojo/public/js/bindings", [ |
var handle = requestOrHandle instanceof types.InterfaceRequest ? |
requestOrHandle.handle : requestOrHandle; |
- if (!core.isHandle(handle)) |
+ if (!(handle instanceof MojoHandle)) |
return; |
this.stub_ = new this.interfaceType_.stubClass(this.impl_); |