Skip to content

Oculus is a tool to simplify object transition, and communication of state (sorta observer pattern) through the use of named objects (unique ids)

Notifications You must be signed in to change notification settings

victusfate/oculus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Oculus is a tool to simplify object transition, and communication of state (sorta observer pattern) through the use of named objects (unique ids)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published