Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(919)

Unified Diff: mojo/public/js/bindings/connector.js

Issue 278093003: Break dependency on core from generated mojom.js files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Specialize Converter<gin::Handle<gin::HandleWrapper> > Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/bindings/js/handle.cc ('k') | mojo/public/tools/bindings/generators/js_templates/module.js.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/bindings/connector.js
diff --git a/mojo/public/js/bindings/connector.js b/mojo/public/js/bindings/connector.js
index 51fb7fe96bbeecf6fa0f5f6dfce1ac4c929fb0dc..57745987bc2fda0be449e5eb4908caa9ac2f7ae4 100644
--- a/mojo/public/js/bindings/connector.js
+++ b/mojo/public/js/bindings/connector.js
@@ -24,9 +24,9 @@ define("mojo/public/js/bindings/connector", [
support.cancelWait(this.readWaitCookie_);
this.readWaitCookie_ = null;
}
- if (this.handle_ != core.kInvalidHandle) {
+ if (this.handle_ != null) {
core.close(this.handle_);
- this.handle_ = core.kInvalidHandle;
+ this.handle_ = null;
}
};
« no previous file with comments | « mojo/bindings/js/handle.cc ('k') | mojo/public/tools/bindings/generators/js_templates/module.js.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698