1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-30 23:23:02 +00:00

Added beginnings of popup widget

This commit is contained in:
Jeremy Ruston
2012-12-30 17:23:44 +00:00
parent 7d5c355d9e
commit 5b7cdc20ba
3 changed files with 113 additions and 3 deletions

View File

@@ -46,4 +46,13 @@ exports.addStyleToParseTreeNode = function(node,name,value) {
}
};
exports.findParseTreeNode = function(nodeArray,search) {
for(var t=0; t<nodeArray.length; t++) {
if(nodeArray[t].type === search.type && nodeArray[t].tag === search.tag) {
return nodeArray[t];
}
}
return undefined;
};
})();