MCPcopy Create free account
hub / github.com/apache/cloudstack / createShortMethods

Function createShortMethods

tools/ngui/static/js/lib/angular.js:9077–9086  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

9075
9076
9077 function createShortMethods(names) {
9078 forEach(arguments, function(name) {
9079 $http[name] = function(url, config) {
9080 return $http(extend(config || {}, {
9081 method: name,
9082 url: url
9083 }));
9084 };
9085 });
9086 }
9087
9088
9089 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