git @ Cat's Eye Technologies Wierd / 8628b3b
Make sourceRoot configurable. Chris Pressey 9 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2121 elem.onload = function() {
2222 if (++loaded != deps.length) return;
2323
24 var sourceRoot = config.sourceRoot || '../../../dialect/wierd-jnc/eg/';
25
2426 var controlPanel = config.controlPanel || container;
2527
2628 /* --- state animation display --- */
8486 'selectElem': presetSelect,
8587 'setPreset': function(n) {
8688 c.clickStop(); // in case it is currently running
87 sm.loadSourceFromURL('../../../eg/' + n);
89 sm.loadSourceFromURL(sourceRoot + n);
8890 sm.onDone();
8991 }
9092 });