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 |
}; |