diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-31 18:01:44 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-31 18:01:44 -0700 |
commit | bfb59dac1491e901b2181c9a2db8d183d61c06e7 (patch) | |
tree | 32c3dbdc69c3aaf71dc6fedbc4db862a3f248f13 /src | |
parent | 325f32c29b442d44111c68dc306b9ee5e859b3ac (diff) |
fix bug with IGNORED_FUNCTIONS
Diffstat (limited to 'src')
-rw-r--r-- | src/jsifier.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 87b9e6eb..d8ed589e 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -411,7 +411,6 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { funcs: {}, seen: {}, processItem: function(item) { - if (IGNORED_FUNCTIONS.indexOf(item.ident) >= 0) return null; if (this.seen[item.__uid__]) return null; if (item.intertype == 'function') { this.funcs[item.ident] = item; @@ -435,6 +434,8 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { // We have this function all reconstructed, go and finalize it's JS! + if (IGNORED_FUNCTIONS.indexOf(func.ident) >= 0) return null; + func.JS = '\nfunction ' + func.ident + '(' + func.paramIdents.join(', ') + ') {\n'; if (PROFILE) { |