MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / createShortMethods

Function createShortMethods

test/fixtures/foo.js:8266–8275  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

8264
8265
8266 function createShortMethods(names) {
8267 forEach(arguments, function(name) {
8268 $http[name] = function(url, config) {
8269 return $http(extend(config || {}, {
8270 method: name,
8271 url: url
8272 }));
8273 };
8274 });
8275 }
8276
8277
8278 function createShortMethodsWithData(name) {

Callers 1

$HttpProviderFunction · 0.85

Calls 3

forEachFunction · 0.85
$httpFunction · 0.85
extendFunction · 0.85

Tested by

no test coverage detected