UNPKG

@danielkalen/simplybind

Version:

Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.

23 lines (18 loc) 467 B
new TestSuite 'title': 'Create Object Bindings' 'subtitle': 'Create 1000 bindings to objects' 'measureMethod': 'sync' 'nonSharedTest': true 'timesToRun': 1 'setupFn': ()-> @obj = 'prop':'value' @objects = ({'prop':null} for i in [1..1000]) return 'teardownFn': (container$)-> SimplyBind.unBindAll(@obj, true) delete @obj delete @objects delete @getNewValue 'testFn': ()-> SimplyBind('prop').of(@obj) .to('multi:prop').of(@objects)