MCPcopy Create free account
hub / github.com/choosehappy/QuickAnnotator / createShortMethodsWithData

Function createShortMethodsWithData

static/js/angular.js:13205–13215  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

13203
13204
13205 function createShortMethodsWithData(name) {
13206 forEach(arguments, function(name) {
13207 $http[name] = function(url, data, config) {
13208 return $http(extend({}, config || {}, {
13209 method: name,
13210 url: url,
13211 data: data
13212 }));
13213 };
13214 });
13215 }
13216
13217
13218 /**

Callers 1

$HttpProviderFunction · 0.85

Calls 3

forEachFunction · 0.85
$httpFunction · 0.85
extendFunction · 0.85

Tested by

no test coverage detected