Commit Graph

68 Commits

Author SHA1 Message Date
Geoff Schmidt
4a1db0db06 WIP: rewrite liveui on top of live range 2011-12-19 17:03:26 -08:00
Geoff Schmidt
c7595000a1 liverange: support multiple range classes 2011-12-19 17:03:26 -08:00
Geoff Schmidt
1cb5ddb65c WIP: LiveRange, a commentless range tracker 2011-12-19 17:03:26 -08:00
Geoff Schmidt
eb146494f7 comment 2011-12-19 17:03:26 -08:00
Geoff Schmidt
f0df8212ee reimplement #each in terms of renderList
not tested yet
2011-12-19 17:03:26 -08:00
Geoff Schmidt
0f397a2a08 renderList: don't forget to kill nodes 2011-12-19 17:03:26 -08:00
Geoff Schmidt
fabfa902bf renderList reimplemented for documentfragments.
there may be bugs. leaderboard works though
2011-12-19 17:03:26 -08:00
Geoff Schmidt
3e29700c82 todos works, and collects garbage 2011-12-19 17:03:26 -08:00
Geoff Schmidt
7cfdfcf0b9 DocumentFragment-based rendering, with GC, draft
leaderboard works
2011-12-19 17:03:26 -08:00
Nick Martin
d38efe6345 Rework reactive logic for new Sky.deps API. 2011-12-19 16:53:14 -08:00
Geoff Schmidt
8503c55453 even cleaner implementation of deps/session
eliminates 'once', easier to understand, saves a little memory
2011-12-19 16:39:28 -08:00
Geoff Schmidt
349d18df0c cosmetic 2011-12-19 16:39:28 -08:00
Geoff Schmidt
3666cff408 redo Sky.deps api for clarity and flexibility
especially the ability for the caller of monitor to grab the invalidation function
2011-12-19 16:39:28 -08:00
Geoff Schmidt
c13415b818 invalidations accumulate until flushed (or the event loop runs again)
this way, when you use find instead of findLive, liveui doesn't do O(n^2) work when a subscription returns n records (it used to, because it'd render the list with 1 element, then with 2, …, then with n)

flush guarantees that all changes have been committed to the DOM, for your jquerying pleasure

experimental - needs docs
2011-12-19 16:39:28 -08:00
Geoff Schmidt
e57b93a1b8 coalesce redundant dependencies created by Session 2011-12-19 16:39:28 -08:00
Geoff Schmidt
74c42ccf4e make handlebars more robust to null/undefined 2011-12-19 16:38:21 -08:00
Nick Martin
60abb2090c Comment on constants per matt. 2011-12-15 23:59:57 -08:00
Nick Martin
9fbf4c7b6b Merge branch 'refs/heads/reconnect' 2011-12-15 21:45:22 -08:00
Nick Martin
cc60375468 Re-subscribe and reset the database when we reconnect. 2011-12-15 20:36:41 -08:00
Nick Martin
1801b33cf7 retransmit unacked messages when we reconnect again. 2011-12-15 16:48:03 -08:00
Nick Martin
1e956fcfe7 Hook up reconnect function to actually do something. 2011-12-14 21:41:13 -08:00
Nick Martin
2c24b1edf0 Expose retry_time in status. 2011-12-14 20:42:13 -08:00
Nick Martin
916a1147fc Real retry timeout logic. 2011-12-14 19:33:10 -08:00
Geoff Schmidt
b3d3d7276d update the jquery 1.7.1
kills irritating deprecation warning in Chrome
2011-12-14 17:58:49 -08:00
Nick Martin
3787999ce8 Retry ourselves by starting a new socket.io connection each time. Still a WIP, but getting there. 2011-12-14 17:45:35 -08:00
Nick Martin
1bda75a203 Wire up reactivity to status(). 2011-12-13 21:55:46 -08:00
Nick Martin
f549efd952 Remove namespace pollution. No functional changes, just cleanup. 2011-12-13 14:31:25 -08:00
Nick Martin
918d15afdc Factor socket.io into stream package on the server as well. Much cleaner now. 2011-12-13 13:40:13 -08:00
Nick Martin
46effaa9b3 Factor stream out of livedata. Client side only. No functional changes. 2011-12-12 20:56:12 -08:00
Geoff Schmidt
5d172d0ded rename renderlist 'query' option to 'selector'
for consistency with other APIs
2011-12-09 23:37:50 -08:00
Geoff Schmidt
d73a647bdd jquery cleanups. also, fix htmljs bug. 2011-12-09 23:15:14 -08:00
Geoff Schmidt
3ec06f7381 eliminate jquery dependency in template assembly 2011-12-09 20:45:11 -08:00
Geoff Schmidt
c6e4c46b14 liveui requires jquery 2011-12-09 16:39:11 -08:00
Nick Martin
56b9273680 IE8 fix. eval doesn't actually return a value. 2011-12-09 13:42:58 -08:00
Geoff Schmidt
1332508840 Remove Sky.ui.focus
Nobody uses it, and it takes a selector, which is
a jquery dependency and is kind of weird
2011-12-08 22:01:48 -08:00
Geoff Schmidt
9a67524673 Sky.startup works on the client (DOM ready)
eliminates a jquery dependency
2011-12-08 21:39:45 -08:00
Geoff Schmidt
008768b21b factor Sky.startup into a separate package 2011-12-08 20:19:46 -08:00
Geoff Schmidt
77b31a2006 minor jquery cleanups 2011-12-08 20:17:16 -08:00
Geoff Schmidt
92b0be6e5f more consistent way to create Sky 2011-12-08 16:34:59 -08:00
Geoff Schmidt
24692a60f5 rationalize underscore usage slightly 2011-12-08 16:28:47 -08:00
Geoff Schmidt
ce565dcaea kill basics package 2011-12-07 22:28:43 -08:00
Geoff Schmidt
260d572afe fix bug introduced by IE8 iteration fix 2011-12-07 22:27:23 -08:00
Geoff Schmidt
8963588b64 eliminate geoffclasses 2011-12-07 21:09:25 -08:00
Geoff Schmidt
02ad969c8a print an error if two templates have the same name
(alas only at runtime for now)
2011-12-07 20:55:00 -08:00
matt debergalis
08ec11e2e7 good replacement for Math.random() and provide a UUID generator.
on the client, minimongo defines (and relies on) Collection.random()
and Collection.uuid() to generate _id values.

on the server, livedata defines (and relies on) Sky.random()
and Sky.uuid() for the same.

random/uuid code is duplicated, as it was before.
2011-12-07 13:03:11 -08:00
matt debergalis
71494cf7e4 stop using genId() 2011-12-07 12:24:53 -08:00
matt debergalis
81854bc6e2 remove unused 2011-12-07 12:19:48 -08:00
Nick Martin
91a4a46ea1 Patch function does not reference any local variables. Move it outside of render() so it doesn't get recompiled every time. 2011-12-05 20:43:59 -08:00
Nick Martin
8438e0783a Work around to prevent infinite loop in IE8. 2011-12-05 20:43:25 -08:00
Nick Martin
1d4f97de34 Work around issue in IE8. 2011-12-01 21:29:33 -08:00