You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To avoid the duplicate task ID issue, have you thought of doing something like the following?
(function () {
var taskCount = 1;
Macro.add('done', {
skipArgs : true,
tags : null,
handler : function () {
var wikiCode = this.payload[0].contents.trim();
// bail out if no payload
if (wikiCode === '') {
return;
}
// register the task
postdisplay[':chapel-done-macro-' + taskCount] = function (task) {
delete postdisplay[task]; // single use
$.wiki(wikiCode); // wikify the source code
};
// increment the task ID counter
taskCount++;
}
});
})();
EDIT: Added the skipArgs property.
The text was updated successfully, but these errors were encountered:
To avoid the duplicate task ID issue, have you thought of doing something like the following?
EDIT: Added the
skipArgs
property.The text was updated successfully, but these errors were encountered: