aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.js b/src/modules.js
index f6587773..d4d86510 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -239,9 +239,9 @@ var Functions = {
},
// Mark a function as needing indexing. Python will coordinate them all
- getIndex: function(ident) {
+ getIndex: function(ident, doNotCreate) {
if (phase != 'post' && singlePhase) {
- this.indexedFunctions[ident] = 0; // tell python we need this indexized
+ if (!doNotCreate) this.indexedFunctions[ident] = 0; // tell python we need this indexized
return '{{{ FI_' + ident + ' }}}'; // something python will replace later
} else {
var ret = this.indexedFunctions[ident];