Most of the example plugins have the below 'undefined' check. onRun: { console.log("Hello, testing.");
if (typeof curScore === 'undefined') { Qt.quit(); } console.log("Didn't quit: " + (typeof curScore)); Qt.quit(); } I closed all scores and ran the above, and this is the output: Debug: Hello, testing. Debug: Didn't quit: object curScore is actually a null object. It seems someone converted plugins from the old JavaScript and didn't update them to reflect what it should be instead: if (curScore === null) { Is this a bug that should be filed somewhere? Thanks, Daniel
------------------------------------------------------------------------------
_______________________________________________ Mscore-developer mailing list Mscore-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mscore-developer