Commit graph

23 commits

Author SHA1 Message Date
ansuz
48d222e565 depend on listmap api from bower 2016-06-06 12:38:31 +02:00
ansuz
beba78d7f8 update prototype dependencies 2016-06-06 12:14:07 +02:00
ansuz
f76dc615c0 use chainpad-crypto from bower and pass it into the listmap api 2016-06-03 18:51:31 +02:00
ansuz
85dbd5cb6e pass in websocketURL from main 2016-06-03 17:27:01 +02:00
ansuz
dccf5e8dcf use listmap api from common/ 2016-06-03 15:51:54 +02:00
ansuz
58633af943 listmap can be reused. put it in common/ 2016-06-03 15:47:34 +02:00
ansuz
f80e9772a8 merge api.js and deep-proxy.js into one file 2016-06-03 15:45:58 +02:00
ansuz
6f7543e9cc demonstrate chaining of 'on' directives 2016-06-02 17:50:55 +02:00
ansuz
e44446f71e proper recursive proxy initialization 2016-06-02 17:49:27 +02:00
ansuz
2b9ac14cb1 restructure main to take advantage of new callback infrastructure 2016-06-01 12:36:26 +02:00
ansuz
fea74782a2 remove a little more dead code that I missed 2016-06-01 12:35:42 +02:00
ansuz
a58d6c745a implement remaining listeners and factor
* 'isProxyable' helper
* 'find' helper
* 'lengthDescending' helper (for sorting change/remove events by path length)
* implement recursive proxy creation
* implement recursive proxy removal
* implement 'bubbling' prevention (via return false)
* implement create, ready, and disconnect event handlers
* return 'this' from 'on'
* trim dead code
2016-06-01 12:28:25 +02:00
ansuz
4222c0b516 simplify api
* refactor conditional with DeepProxy helpers
* don't call 'onRemote' until fully initialized
* use disconnect, ready, and create handlers on proxy object
2016-06-01 12:25:16 +02:00
ansuz
599f5aeec8 add sample listeners for debugging 2016-05-30 10:18:08 +02:00
ansuz
3afd144562 don't make noise when adding a listener 2016-05-30 10:17:46 +02:00
ansuz
e86a3567be more minor bugfixes and general improvements
off by one error in deletion loop (and undefined references)
sort listeners by pattern specificity
deletions are changes (for now)
2016-05-28 13:51:24 +02:00
ansuz
7c63219add fix some minor bugs 2016-05-28 13:15:06 +02:00
ansuz
a0c73c95d8 do away with a bit of boilerplate 2016-05-28 13:13:54 +02:00
ansuz
e189092ba8 document/spec the listmap api in its current/intended form 2016-05-28 00:48:52 +02:00
ansuz
55846044e1 rewrite underlying API. implement listeners 2016-05-28 00:48:10 +02:00
ansuz
014dce272b working on better abstractions. still held together with duct tape 2016-05-26 11:55:33 +02:00
ansuz
c1bca09cce move list/map functionality into wrapper file 2016-05-25 18:36:44 +02:00
ansuz
f61d06fa18 first commit for listmap prototype 2016-05-25 11:56:17 +02:00