A Small object-oriented library to aid you in your quest for Javascript awesomeness by establishing hierarchies of objects which are able to utilize a chain-of-responsibility.
...and the making of sandwiches.
- Specific
module
documentation and examples moved to the wiki. - See the Docco annotated source code located in the docs directory.
- addDelegate(object)
- getDelegate(role)
- removeDelegate(role)
- delegate(role, method)
- setPath(path, value)
- sets(object)
- getPath(path)
- gets(array)
- unsetPath(path)
- unsets(array)
- addChild(child, name)
- getChild(argument)
- removeChild(argument)
- bubble()
- removedFromParent()
- send(arguments)
- mergeState
- resetState
- filter
- filter
- bindEvents
- unbindEvents
npm test
to run them all. You can also run each individually with
gulp jasmine --spec path/to/spec/file.js
Use a static server as the new import
functionality will not work with filesystem-level requests. I use static
which, once installed globally, would allow you to simply run (from project root)
static examples/buttons
Then just point Chrome to localhost:8080