Derived from #1. The Synapse constructor can take a boolean designating whether to wrap the passed in object with the public API methods observe, notify, and sync, i.e. Synapse(object, [extend]):
var elem = Synapse('input', true), // returns the matched object for the hook (e.g. jQuery object)
data = Synapse({}, true);
data.observe(elem);
elem instanceof jQuery; // true
Derived from #1. The
Synapse
constructor can take a boolean designating whether to wrap the passed in object with the public API methodsobserve
,notify
, andsync
, i.e.Synapse(object, [extend])
: