(js) Verify $topIndex of virtual-repeater

Fixes #3500
pull/198/head
Francis Lachapelle 2016-02-05 10:49:50 -05:00
parent b74dd0c942
commit e3fbde3c16
1 changed files with 3 additions and 0 deletions

View File

@ -689,6 +689,9 @@
Mailbox.$timeout(function() {
var uids, headers;
if (_this.$topIndex > data.uids.length - 1)
_this.$topIndex = 0;
_this.init(data);
if (_this.uids) {