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

Unified Diff: native_client_sdk/src/examples/common.js

Issue 23531034: [NaCl SDK] Don't exit from nacl_io_test before posting message to JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | native_client_sdk/src/tests/nacl_io_test/example.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/common.js
diff --git a/native_client_sdk/src/examples/common.js b/native_client_sdk/src/examples/common.js
index dc5328faa7547f86726ad6936b2d4a2fe1f5e345..6a78d4280140d2812e1f54ad7e80ea9be418ffc0 100644
--- a/native_client_sdk/src/examples/common.js
+++ b/native_client_sdk/src/examples/common.js
@@ -238,6 +238,14 @@ var common = (function() {
}
/**
+ * Remove the NaCl module from the page.
+ */
+ function removeModule() {
+ common.naclModule.parentNode.removeChild(common.naclModule);
+ common.naclModule = null;
+ }
+
+ /**
* Return true when |s| starts with the string |prefix|.
*
* @param {string} s The string to search.
@@ -376,6 +384,7 @@ var common = (function() {
domContentLoaded: domContentLoaded,
createNaClModule: createNaClModule,
hideModule: hideModule,
+ removeModule: removeModule,
logMessage: logMessage,
updateStatus: updateStatus
};
« no previous file with comments | « no previous file | native_client_sdk/src/tests/nacl_io_test/example.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698