Consistency. placeholder is inited to null in Thread class.
This commit is contained in:
parent
4b0cd37854
commit
7c7d79e436
@ -165,7 +165,7 @@ Build =
|
|||||||
thread: (thread, data) ->
|
thread: (thread, data) ->
|
||||||
if (root = thread.nodes.root)
|
if (root = thread.nodes.root)
|
||||||
$.rmAll root
|
$.rmAll root
|
||||||
delete thread.nodes.placeholder
|
thread.nodes.placeholder = null
|
||||||
else
|
else
|
||||||
thread.nodes.root = root = $.el 'div',
|
thread.nodes.root = root = $.el 'div',
|
||||||
className: 'thread'
|
className: 'thread'
|
||||||
|
|||||||
@ -715,7 +715,7 @@ Index =
|
|||||||
for thread in threads
|
for thread in threads
|
||||||
if thread.nodes.placeholder
|
if thread.nodes.placeholder
|
||||||
$.replace thread.nodes.placeholder, thread.OP.nodes.root
|
$.replace thread.nodes.placeholder, thread.OP.nodes.root
|
||||||
delete thread.nodes.placeholder
|
thread.nodes.placeholder = null
|
||||||
if (file = thread.OP.file) and (thumb = thread.OP.file.thumb) and thumb.dataset.src
|
if (file = thread.OP.file) and (thumb = thread.OP.file.thumb) and thumb.dataset.src
|
||||||
thumb.src = thumb.dataset.src
|
thumb.src = thumb.dataset.src
|
||||||
# XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1021289
|
# XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1021289
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user