MCPcopy
hub / github.com/binux/qiandao / createShortMethodsWithData

Function createShortMethodsWithData

web/static/components/angularjs/angular.js:8247–8257  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

8245
8246
8247 function createShortMethodsWithData(name) {
8248 forEach(arguments, function(name) {
8249 $http[name] = function(url, data, config) {
8250 return $http(extend(config || {}, {
8251 method: name,
8252 url: url,
8253 data: data
8254 }));
8255 };
8256 });
8257 }
8258
8259
8260 /**

Callers 1

$HttpProviderFunction · 0.85

Calls 3

forEachFunction · 0.85
$httpFunction · 0.85
extendFunction · 0.85

Tested by

no test coverage detected