aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorLorant Pinter <lorant.pinter@prezi.com>2013-03-03 02:24:11 +0100
committerLorant Pinter <lorant.pinter@prezi.com>2013-03-03 02:24:11 +0100
commitaa6f0ec91d5bc8727e9ab4a3c2f7286005e45929 (patch)
tree3ea68f1bc812ecfc42f68de8487a8df763e3e35e /src/runtime.js
parent0a4bc063c35aa5d70b7aaae72029b16a56432563 (diff)
Added Runtime.removeFunction()
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js
index e902d27b..fad09a80 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -365,6 +365,11 @@ var Runtime = {
return ret;
},
+ removeFunction: function(index, func) {
+ var table = FUNCTION_TABLE; // TODO: support asm
+ table[index] = null;
+ },
+
warnOnce: function(text) {
if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
if (!Runtime.warnOnce.shown[text]) {