Fix lint errors [MAILPOET-971]
This commit is contained in:
@@ -122,7 +122,7 @@ define([
|
|||||||
_loadMorePosts: function() {
|
_loadMorePosts: function() {
|
||||||
var that = this,
|
var that = this,
|
||||||
postCount = this.get('_availablePosts').length,
|
postCount = this.get('_availablePosts').length,
|
||||||
nextOffset = this.get('offset') + ~~this.get('amount');
|
nextOffset = this.get('offset') + Number(this.get('amount'));
|
||||||
|
|
||||||
if(postCount === 0 || postCount < nextOffset) {
|
if(postCount === 0 || postCount < nextOffset) {
|
||||||
// No more posts to load
|
// No more posts to load
|
||||||
|
Reference in New Issue
Block a user