fix(collectionRepeat): make it work performantly with exposeAsideWhen

Closes #3244.
This commit is contained in:
Andrew
2015-03-11 11:02:06 -06:00
parent 060bf61b75
commit 4f35d8e665
6 changed files with 66 additions and 24 deletions

View File

@@ -95,16 +95,6 @@ describe('$ionicScroll Controller', function() {
expect(ctrl.scrollView.run).toHaveBeenCalled();
});
it('should unbind window event listener on scope destroy', inject(function($window) {
spyOn(ionic, 'on');
spyOn(ionic, 'off');
setup();
expect(ionic.on).toHaveBeenCalledWith('resize', jasmine.any(Function), $window);
scope.$destroy();
expect(ionic.off).toHaveBeenCalledWith('resize', jasmine.any(Function), $window);
}));
it('should listen to scroll event and call $onScroll', function() {
setup();
scope.$onScroll = jasmine.createSpy();