changes in access to startNote and currentNote

This commit is contained in:
azivner
2018-03-06 23:04:35 -05:00
parent 6d0218cb36
commit 766a567a32
8 changed files with 74 additions and 42 deletions

View File

@@ -116,9 +116,11 @@ async function stopWatch(what, func) {
}
async function executeBundle(bundle) {
const api = Api(bundle.note, bundle.allNotes);
const apiContext = ApiContext(bundle.note, bundle.allNotes);
return await (function() { return eval(`const api = this; (async function() { ${bundle.script}\r\n})()`); }.call(api));
console.log((`const apiContext = this; (async function() { ${bundle.script}\r\n})()`));
return await (function() { return eval(`const apiContext = this; (async function() { ${bundle.script}\r\n})()`); }.call(apiContext));
}
function formatValueWithWhitespace(val) {