Skip to content

Commit

Permalink
#29 - reseta lista de blogs na home
Browse files Browse the repository at this point in the history
  • Loading branch information
teles committed Mar 10, 2016
1 parent d72a1f9 commit 1284a9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/views/home/models/list-blogs.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
pageNumber: 1,
pageInitialNumber: 0,
pageSize: 12,
resetBlogGroups: resetBlogGroups
};
return model;

function init(pageParams){
model.resetBlogGroups();
model.pageNumber = parseInt(pageParams.pageNumber);
model.pageInitialNumber = parseInt(pageParams.pageNumber);
}
Expand All @@ -42,6 +44,10 @@
model.isLoadingMoreBlogs = false;
});
}

function resetBlogGroups(){
model.blogGroups = [];
}
};

})();

0 comments on commit 1284a9c

Please sign in to comment.