Skip to content

Commit d7dfeab

Browse files
refact($http): use the $jsonpCallbacks service
Use the built-in service to handling callbacks to `$http.jsonp` requests. Closes angular#3073
1 parent bdb210d commit d7dfeab

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/ng/httpBackendSpec.js

-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ describe('$httpBackend', function() {
338338

339339

340340
it('should clean up the callback and remove the script', function() {
341-
spyOn($jsonpCallbacks, 'wasCalled').and.callThrough();
342341
spyOn($jsonpCallbacks, 'removeCallback').and.callThrough();
343342

344343
$backend('JSONP', 'http://example.org/path?cb=JSON_CALLBACK', null, callback);

0 commit comments

Comments
 (0)