git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit b3cef6b8b9f06ee8809214af5a022124d25cac40

fix weird partial refreshed feeds bug

Matt McKegg committed on 3/15/2017, 11:06:46 PM
Parent: 1d6fd23c30839bf244cdf6f1eb375de93047df31

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -54,11 +54,9 @@
5454 h('strong', [updates]), ' ',
5555 when(computed(updates, a => a === 1), 'update', 'updates')
5656 ])
5757
58- var content = h('section.content', {
59- hidden: computed(sync, s => !s)
60- })
58+ var content = Value()
6159
6260 var container = h('Scroller', {
6361 style: { overflow: 'auto' }
6462 }, [
@@ -126,10 +124,15 @@
126124 abortLastFeed()
127125 }
128126 updates.set(0)
129127 sync.set(false)
130- content.innerHTML = ''
131128
129+ content.set(
130+ h('section.content', {
131+ hidden: computed(sync, s => !s)
132+ })
133+ )
134+
132135 var abortable = Abortable()
133136 abortLastFeed = abortable.abort
134137
135138 pull(
@@ -144,9 +147,9 @@
144147 return true
145148 }
146149 }),
147150 abortable,
148- Scroller(container, content, renderItem, false, false)
151+ Scroller(container, content(), renderItem, false, false)
149152 )
150153 }
151154
152155 function renderItem (item) {

Built with git-ssb-web