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

Function createShortMethods

fks_chart/bower_components/angular/angular.js:8345–8354  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

8343
8344
8345 function createShortMethods(names) {
8346 forEach(arguments, function(name) {
8347 $http[name] = function(url, config) {
8348 return $http(extend(config || {}, {
8349 method: name,
8350 url: url
8351 }));
8352 };
8353 });
8354 }
8355
8356
8357 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