MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / createShortMethods

Function createShortMethods

web/static/bower_components/angular/angular.js:10434–10443  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

10432
10433
10434 function createShortMethods(names) {
10435 forEach(arguments, function(name) {
10436 $http[name] = function(url, config) {
10437 return $http(extend({}, config || {}, {
10438 method: name,
10439 url: url
10440 }));
10441 };
10442 });
10443 }
10444
10445
10446 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