@danielkalen/simplybind
Version:
Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.
26 lines (21 loc) • 635 B
text/coffeescript
###*
* Stage definitions:
*
* 0: Selection: Got selector, awaiting object.
* 1: Indication: Got object, awaiting proxied property / function / Binding-object.
* 2: Binding Complete: Complete, awaiting additional (optional) bindings/mutations.
###
BindingInterface = (options, inheritedState)->
if inheritedState
extendState(@, inheritedState)
else
for key of defaultOptions
return @
import './prototype-private'
import './prototype-public'