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

Unified Diff: mojo/public/js/codec.js

Issue 825613004: Mojo JS Bindings: fix the demos (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | mojo/public/js/connector.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/codec.js
diff --git a/mojo/public/js/codec.js b/mojo/public/js/codec.js
index 68d5dba75f2f581f657f4b0295dbafc61f2e6f93..357e50718de2788fde45f0c8af90a2af044864f6 100644
--- a/mojo/public/js/codec.js
+++ b/mojo/public/js/codec.js
@@ -125,7 +125,7 @@ define("mojo/public/js/codec", [
};
Decoder.prototype.decodeHandle = function() {
- return this.handles[this.readUint32()];
+ return this.handles[this.readUint32()] || null;
};
Decoder.prototype.decodeString = function() {
« no previous file with comments | « no previous file | mojo/public/js/connector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698