mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scrollview, content): Fixed multiple memory leaks in scrollview and content
This commit is contained in:
committed by
Perry Govier
parent
d3c8a1b2a4
commit
f89f010cce
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user