1.1.0 • Published 6 years ago

oculus v1.1.0

Weekly downloads
1
License
BSD
Repository
github
Last release
6 years ago

oculus

oculus

oculus is a tool to simplify object transition, and communication of state (pub/sub pattern) through the use of named objects (unique id)

cold = new StateVal('cold','ooze',{})

// funky subscribes to changes in cold object
funky = new StateVal('funky', { 'cold': cold} )

// update and publish cold state to its listeners
cold.publish({ val: 'medina' })
{ status: 'PageElement.published(obj).and.updatedSelf',
  obj: 
   StateVal {
     name: 'cold',
     subscribers: { '#funky': [PageElement] },
     val: 'medina' } }

license: BSD

1.1.0

6 years ago

1.0.0

6 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago