|
|
@@ -386,7 +386,7 @@ define [
|
|
|
#console.log 'page size change event', pageNum, delta
|
|
|
origposition = angular.copy scope.position
|
|
|
#console.log 'orig position', JSON.stringify(origposition)
|
|
|
- if pageNum - 1 < origposition.page && delta != 0
|
|
|
+ if origposition? && pageNum - 1 < origposition.page && delta != 0
|
|
|
currentScrollTop = element.scrollTop()
|
|
|
#console.log 'adjusting scroll from', currentScrollTop, 'by', delta
|
|
|
scope.adjustingScroll = true
|