You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
varelement=prepareInputEl('<div><input ng-model="result" uib-typeahead="item for item in source | filter:$viewValue" typeahead-append-to-body="true"></div>');
it('should register event listeners when attached to body',function(){
1029
+
spyOn(window,'addEventListener');
1030
+
spyOn(document.body,'addEventListener');
1031
+
1032
+
varelement=prepareInputEl('<div><input ng-model="result" uib-typeahead="item for item in source | filter:$viewValue" typeahead-append-to-body="true"></div>');
it('should remove event listeners when attached to body',function(){
1039
+
spyOn(window,'removeEventListener');
1040
+
spyOn(document.body,'removeEventListener');
1041
+
1042
+
varelement=prepareInputEl('<div><input ng-model="result" uib-typeahead="item for item in source | filter:$viewValue" typeahead-append-to-body="true"></div>');
0 commit comments