1.0.2 • Published 10 years ago

sohook v1.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
10 years ago

Just a hook javascript tools.

This is an example:

hook = require 'shook'

test1 = ()->
  hook.doAction()
  console.log 'do some things'


hookAction = ()->
  console.log 'this is hook action!'
hookAction2 = () ->
  console.log 'this is hook action2'
hook.addAction test1, hookAction, 1
hook.addAction test1, hookAction2, 2

test1()
hook.removeAction test1, hookAction
test1()
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago