Skip to content

Latest commit

 

History

History
84 lines (53 loc) · 2.08 KB

README.md

File metadata and controls

84 lines (53 loc) · 2.08 KB

sudo.js

Annotated Source

Here

Overview

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.

Documentaion

  • Specific module documentation and examples moved to the wiki.
  • See the Docco annotated source code located in the docs directory.

API Reference

Methods Exposed by Module and Their Corresponding Wiki Page

  • 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

Modules Residing in 'Extras'

  • filter
  • filter
  • bindEvents
  • unbindEvents
and more...

Test Suite

npm test to run them all. You can also run each individually with gulp jasmine --spec path/to/spec/file.js

Run The "Buttons" Example

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

more soon...