Skip to content

Commit

Permalink
refact($http): use the $jsonpCallbacks service
Browse files Browse the repository at this point in the history
Use the built-in service to handling callbacks to `$http.jsonp` requests.

Closes angular#3073
  • Loading branch information
petebacondarwin committed Jun 18, 2016
1 parent bdb210d commit d7dfeab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/ng/httpBackendSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ describe('$httpBackend', function() {


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

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

0 comments on commit d7dfeab

Please sign in to comment.