Fixed bug: if newContainer is $window, just assign ($window.last was assigned before fix)
Fixed bug: if newContainer is $window, just assign ($window.last was assigned before fix)

Tradiio/ngInfiniteScroll,aisharagheb/ngInfiniteScroll,seawenzhu/ngInfiniteScroll,sroze/ngInfiniteScroll,suryasingh/ngInfiniteScroll,maksimr/ngInfiniteScroll,AmitThakkar/ngInfiniteScroll,yesmeck/ngInfiniteScroll,timesqueezer/ngInfiniteScroll,Masadow/ngInfiniteScroll,uzen/angular-infinitescroll,just-boris/ngInfiniteScroll,Manumental32/ngInfiniteScroll,itkin/ngInfiniteScroll,msbit/ngInfiniteScroll,tianyawy/ngInfiniteScroll,xuwupeng2000/ngInfiniteScroll,sroze/ngInfiniteScroll,uzen/angular-infinitescroll,solomon87/ngInfiniteScroll,cloudnode-app/ngInfiniteScroll,maxamillion32/ngInfiniteScroll