MCPcopy Create free account
hub / github.com/JacksonTian/fks / createShortMethodsWithData

Function createShortMethodsWithData

fks_chart/bower_components/angular/angular.js:8357–8367  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

8355
8356
8357 function createShortMethodsWithData(name) {
8358 forEach(arguments, function(name) {
8359 $http[name] = function(url, data, config) {
8360 return $http(extend(config || {}, {
8361 method: name,
8362 url: url,
8363 data: data
8364 }));
8365 };
8366 });
8367 }
8368
8369
8370 /**

Callers 1

$HttpProviderFunction · 0.85

Calls 3

forEachFunction · 0.85
$httpFunction · 0.85
extendFunction · 0.85

Tested by

no test coverage detected