Why bother assigning variables to do nothing with them?

This commit is contained in:
Zixaphir 2014-01-07 10:20:13 -07:00
parent 80dd30def0
commit 420a5ad432
3 changed files with 8 additions and 7 deletions

View File

@ -4981,11 +4981,11 @@
nodeinsert: function(force) {
var bottom, height, post, posts, root, threadContainer, top, _ref;
post = g.posts[this.threaded];
posts = Unread.posts;
root = post.nodes.root;
if (this.thread.OP === post) {
return false;
}
posts = Unread.posts;
root = post.nodes.root;
if (!force) {
height = doc.clientHeight;
_ref = root.getBoundingClientRect(), bottom = _ref.bottom, top = _ref.top;

View File

@ -4984,11 +4984,11 @@
nodeinsert: function(force) {
var bottom, height, post, posts, root, threadContainer, top, _ref;
post = g.posts[this.threaded];
posts = Unread.posts;
root = post.nodes.root;
if (this.thread.OP === post) {
return false;
}
posts = Unread.posts;
root = post.nodes.root;
if (!force) {
height = doc.clientHeight;
_ref = root.getBoundingClientRect(), bottom = _ref.bottom, top = _ref.top;

View File

@ -49,12 +49,13 @@ QuoteThreading =
@cb = QuoteThreading.nodeinsert
nodeinsert: (force) ->
post = g.posts[@threaded]
{posts} = Unread
{root} = post.nodes
post = g.posts[@threaded]
return false if @thread.OP is post
{posts} = Unread
{root} = post.nodes
unless force
height = doc.clientHeight
{bottom, top} = root.getBoundingClientRect()