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

Function createShortMethods

web/static/components/angularjs/angular.js:8235–8244  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

8233
8234
8235 function createShortMethods(names) {
8236 forEach(arguments, function(name) {
8237 $http[name] = function(url, config) {
8238 return $http(extend(config || {}, {
8239 method: name,
8240 url: url
8241 }));
8242 };
8243 });
8244 }
8245
8246
8247 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