git ssb

1+

Matt McKegg / mutant



Tree: 6cbb0cdc8dd11c5f29e9c875e9f602f1d9a21f2a

Files: 6cbb0cdc8dd11c5f29e9c875e9f602f1d9a21f2a / send.js

274 bytesRaw
1module.exports = Send
2
3function Send (fn, data, opts) {
4 return {
5 fn: fn,
6 data: data,
7 opts: opts,
8 event: null,
9 handleEvent: handleEvent
10 }
11}
12
13function handleEvent (e) {
14 e.stopPropagation()
15 e.preventDefault()
16 this.event = e
17 this.fn(this.data)
18}
19

Built with git-ssb-web