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

Function createShortMethods

static/js/angular.js:13193–13202  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

13191
13192
13193 function createShortMethods(names) {
13194 forEach(arguments, function(name) {
13195 $http[name] = function(url, config) {
13196 return $http(extend({}, config || {}, {
13197 method: name,
13198 url: url
13199 }));
13200 };
13201 });
13202 }
13203
13204
13205 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