Skip to content

Commit

Permalink
ENYO-2698: Account for popQueueCount when clearing history
Browse files Browse the repository at this point in the history
Enyo-DCO-1.1-Signed-off-by: Stephen Choi <stephen.choi@lge.com>
  • Loading branch information
Stephen Choi committed Oct 14, 2015
1 parent 609718b commit f7a5f83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/History.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ var EnyoHistory = module.exports = kind.singleton(
*/
clear: function () {
var len = _history.length;

if (_popQueueCount) len = len - _popQueueCount;

This comment has been minimized.

Copy link
@webOS101

webOS101 Oct 14, 2015

Member

Should clear get rid of any queued push requests? Would it be better to process the queue first?


if (len) {
this.drop(len);
}
Expand Down

0 comments on commit f7a5f83

Please sign in to comment.