@danielkalen/simplybind
Version:
Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.
11 lines (9 loc) • 499 B
text/coffeescript
errors =
invalidParamName: "SimplyBind() and .to() only accept a function, an array, a bound object, a string, or a number."
fnOnly: "Only functions are allowed for .transform/.condition/All()"
badEventArg: "Invalid argument number in .ofEvent()"
emptyList: "Empty collection provided"
# simplyimport:if BUNDLE_TARGET = 'browser'
onlyOneDOMElement: "You can only pass a single DOM element to a binding"
mixedElList: "'checked' of Mixed list of element cannot be bound"
# simplyimport:end