|
|
@ -308,10 +308,22 @@ var inject = function () {
|
|
|
|
].forEach(function (met) {
|
|
|
|
].forEach(function (met) {
|
|
|
|
var temp = $provide[met];
|
|
|
|
var temp = $provide[met];
|
|
|
|
$provide[met] = function (name, definition) {
|
|
|
|
$provide[met] = function (name, definition) {
|
|
|
|
debug.deps.push({
|
|
|
|
if (typeof name === 'object') {
|
|
|
|
name: name,
|
|
|
|
angular.forEach(name, function (value, key) {
|
|
|
|
imports: annotate(definition)
|
|
|
|
name[key] = function () {
|
|
|
|
});
|
|
|
|
debug.deps.push({
|
|
|
|
|
|
|
|
name: key,
|
|
|
|
|
|
|
|
imports: annotate(value)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return value.apply(this, arguments);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
debug.deps.push({
|
|
|
|
|
|
|
|
name: name,
|
|
|
|
|
|
|
|
imports: annotate(definition)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
return temp.apply(this, arguments);
|
|
|
|
return temp.apply(this, arguments);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|