This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// domStreams | |
var K = require("kefir") | |
, exported = {} | |
, evts = ["click", "mouseenter", "mousemove", "mouseexit"]; | |
evts.forEach((eventKey, i, arr) => { | |
exported[eventKey] = (elem) => { | |
return K.fromEvent(elem, eventKey); | |
}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
module loader | |
primary purpose is to provide a way of | |
injecting mocks into nodeJS modules | |
secondary purpose is to eliminate relative | |
paths in require statements | |
*/ |