src/js/libs/spiritual-edb.js
function(element) {
		var atts = [];
		new gui.Crawler('functionupdate').descend(element, {
			handleElement: function(elm) {
				if (elm !== element) {
					Array.forEach(elm.attributes, function(att) {
						if (att.value.contains("edbml.$run")) {
							atts.push([elm, att]);
						}
					});
					if (elm.spirit && elm.spirit.script.loaded) { // ... not our DOM tree
						return gui.Crawler.SKIP_CHILDREN;
					}
				}
			}
		});
		return atts;
	}
function(element) {
		var atts = [];
		new gui.Crawler('functionupdate').descend(element, {
			handleElement: function(elm) {
				if (elm !== element) {
					Array.forEach(elm.attributes, function(att) {
						if (att.value.contains("edbml.$run")) {
							atts.push([elm, att]);
						}
					});
					if (elm.spirit && elm.spirit.script.loaded) { // ... not our DOM tree
						return gui.Crawler.SKIP_CHILDREN;
					}
				}
			}
		});
		return atts;
	}
function ( element ) { var atts = [ ] ; new gui . Crawler ( 'functionupdate' ) . descend ( element , { handleElement : function ( elm ) { if ( elm !== element ) { Array . forEach ( elm . attributes , function ( att ) { if ( att . value . contains ( "edbml.$run" ) ) { atts . push ( [ elm , att ] ) ; } } ) ; if ( elm . spirit && elm . spirit . script . loaded ) { // ... not our DOM tree return gui . Crawler . SKIP_CHILDREN ; } } } } ) ; return atts ; }
Collect attributes from DOM subtree that
somewhat resemble EDBML poke statements.
@returns {Array<Array<Node>>}
Collect attributes from DOM subtree that somewhat resemble EDBML poke statements .