We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0abdb commit e9f9075Copy full SHA for e9f9075
editor/static/js/question/edit.js
@@ -404,10 +404,14 @@ $(document).ready(function() {
404
return scope;
405
}
406
407
+ var seen_functions = {}
408
+
409
functions.map(function(f) {
410
try {
411
const name = jme.normaliseName(f.name(), scope);
- var cfn = made_functions[name][0];
412
+ var i = seen_functions[name] || 0;
413
+ seen_functions[name] = i + 1;
414
+ var cfn = made_functions[name][i];
415
416
var oevaluate = cfn.evaluate;
417
cfn.evaluate = function(args,scope) {
0 commit comments