Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 908 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 908 Bytes

Ripple | Data

Coverage Status Build Status

Extends core to register objects and arrays. It also enables per-resource change listeners on those resources, as well versioning info.

ripple('data', [])

All data resources will be emitterified:

// instead of: ripple.on('change', function(name, change){ .. })
ripple('name').on('change', function(change){ .. })
ripple('name').once('change', function(change){ .. })
ripple('name').emit('change')

All data resources will be initialised with versioning info:

ripple('name').log