fix(scrollview, content): Fixed multiple memory leaks in scrollview and content

This commit is contained in:
Justin Basinger
2014-08-18 16:22:04 -04:00
committed by Perry Govier
parent d3c8a1b2a4
commit f89f010cce
4 changed files with 53 additions and 21 deletions

View File

@@ -144,7 +144,7 @@ describe('$ionicScroll Controller', function() {
setup();
spyOn(ctrl.scrollView, 'getValues');
scope.$destroy();
expect(ctrl.scrollView.getValues).not.toHaveBeenCalled();
expect(ctrl.scrollView).toEqual(null);
expect($$scrollValueCache).toEqual({});
}));
@@ -155,7 +155,7 @@ describe('$ionicScroll Controller', function() {
return 'scrollValues';
});
scope.$destroy();
expect(ctrl.scrollView.getValues).toHaveBeenCalled();
expect(ctrl.scrollView).toEqual(null);
expect($$scrollValueCache).toEqual({
'super': 'scrollValues'
});