FIX: jsHint fail
This commit is contained in:
parent
2681717a87
commit
7b9768aa7f
|
@ -268,7 +268,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_scrollList: function($article, direction) {
|
_scrollList: function($article) {
|
||||||
// Try to keep the article on screen
|
// Try to keep the article on screen
|
||||||
var scrollPos = $article.position().top - ($(window).height() * 0.5);
|
var scrollPos = $article.position().top - ($(window).height() * 0.5);
|
||||||
if (scrollPos < 0) { scrollPos = 0; }
|
if (scrollPos < 0) { scrollPos = 0; }
|
||||||
|
|
Loading…
Reference in New Issue