(path, event,action)
| 92 | guardTime = customOnChange.guardTime || 1000; |
| 93 | |
| 94 | function onChangeFiltered(path, event,action) { |
| 95 | ss.log.info('✎'.green, consoleMessage[action].grey); |
| 96 | var pubs ='__ss:' + action; |
| 97 | if (customOnChange.publish) { |
| 98 | pubs = options.onChange.publish(path, event,action,pubs); |
| 99 | } |
| 100 | if (pubs) { |
| 101 | ss.publish.all(pubs); |
| 102 | } |
| 103 | |
| 104 | lastRun[action].at = Date.now(); |
| 105 | } |
| 106 | |
| 107 | // reload the browser |
| 108 | function onChange(changedPath, event) { |