Why bother assigning variables to do nothing with them?
This commit is contained in:
parent
80dd30def0
commit
420a5ad432
@ -4981,11 +4981,11 @@
|
|||||||
nodeinsert: function(force) {
|
nodeinsert: function(force) {
|
||||||
var bottom, height, post, posts, root, threadContainer, top, _ref;
|
var bottom, height, post, posts, root, threadContainer, top, _ref;
|
||||||
post = g.posts[this.threaded];
|
post = g.posts[this.threaded];
|
||||||
posts = Unread.posts;
|
|
||||||
root = post.nodes.root;
|
|
||||||
if (this.thread.OP === post) {
|
if (this.thread.OP === post) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
posts = Unread.posts;
|
||||||
|
root = post.nodes.root;
|
||||||
if (!force) {
|
if (!force) {
|
||||||
height = doc.clientHeight;
|
height = doc.clientHeight;
|
||||||
_ref = root.getBoundingClientRect(), bottom = _ref.bottom, top = _ref.top;
|
_ref = root.getBoundingClientRect(), bottom = _ref.bottom, top = _ref.top;
|
||||||
|
|||||||
@ -4984,11 +4984,11 @@
|
|||||||
nodeinsert: function(force) {
|
nodeinsert: function(force) {
|
||||||
var bottom, height, post, posts, root, threadContainer, top, _ref;
|
var bottom, height, post, posts, root, threadContainer, top, _ref;
|
||||||
post = g.posts[this.threaded];
|
post = g.posts[this.threaded];
|
||||||
posts = Unread.posts;
|
|
||||||
root = post.nodes.root;
|
|
||||||
if (this.thread.OP === post) {
|
if (this.thread.OP === post) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
posts = Unread.posts;
|
||||||
|
root = post.nodes.root;
|
||||||
if (!force) {
|
if (!force) {
|
||||||
height = doc.clientHeight;
|
height = doc.clientHeight;
|
||||||
_ref = root.getBoundingClientRect(), bottom = _ref.bottom, top = _ref.top;
|
_ref = root.getBoundingClientRect(), bottom = _ref.bottom, top = _ref.top;
|
||||||
|
|||||||
@ -49,12 +49,13 @@ QuoteThreading =
|
|||||||
@cb = QuoteThreading.nodeinsert
|
@cb = QuoteThreading.nodeinsert
|
||||||
|
|
||||||
nodeinsert: (force) ->
|
nodeinsert: (force) ->
|
||||||
post = g.posts[@threaded]
|
post = g.posts[@threaded]
|
||||||
{posts} = Unread
|
|
||||||
{root} = post.nodes
|
|
||||||
|
|
||||||
return false if @thread.OP is post
|
return false if @thread.OP is post
|
||||||
|
|
||||||
|
{posts} = Unread
|
||||||
|
{root} = post.nodes
|
||||||
|
|
||||||
unless force
|
unless force
|
||||||
height = doc.clientHeight
|
height = doc.clientHeight
|
||||||
{bottom, top} = root.getBoundingClientRect()
|
{bottom, top} = root.getBoundingClientRect()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user