Skip to content

Commit aaeaa6b

Browse files
author
Jelte Lagendijk
committed
Fix nullExec
1 parent e2d03ba commit aaeaa6b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/HTMLSnippet/widget/HTMLSnippet.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ define([
9797
}
9898
}
9999

100-
mendix.lang.nullExec(callback);
100+
this._executeCallback(callback, "update");
101101
},
102102

103103
_setupEvents: function() {
@@ -134,6 +134,13 @@ define([
134134
} catch (e) {
135135
domConstruct.place("<div class=\"alert alert-danger\">Error while evaluating javascript input: " + e + "</div>", this.domNode, "only");
136136
}
137+
},
138+
139+
_executeCallback: function (cb, from) {
140+
logger.debug(this.id + "._executeCallback" + (from ? " from " + from : ""));
141+
if (cb && typeof cb === "function") {
142+
cb();
143+
}
137144
}
138145
});
139146
});

test/widgets/HTMLSnippet.mpk

56 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)