diff options
| author | Igor Minar | 2011-01-06 11:50:24 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-01-07 12:02:45 -0800 |
| commit | 142a985f33e72ab8c86916dcb6fe6996671b1b5a (patch) | |
| tree | 27db1c53716388c4cc6d12568d3421844d237c6c /src/Angular.js | |
| parent | bd5ec7c32a59317840121432dcd9700fefde1ffd (diff) | |
| download | angular.js-142a985f33e72ab8c86916dcb6fe6996671b1b5a.tar.bz2 | |
Revert "Issue #51: Update extensionMap()"
This reverts commit 00ca67e4befffed00ecee81bd1ce903fe01f542a.
Now that we don't have published services, we don't need to worryi
about this any more and in fact this behavior is confusing because
to override a service that has dependencies with a services with
no dependencies one must specify $inject:[] or else the old
dependencies will be injected.
Conflicts:
src/Angular.js
test/AngularSpec.js
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Angular.js b/src/Angular.js index bdd71725..8b61970f 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -253,18 +253,11 @@ function identity($) {return $;} function valueFn(value) {return function(){ return value; };} - function extensionMap(angular, name, transform) { var extPoint; return angular[name] || (extPoint = angular[name] = function (name, fn, prop){ name = (transform || identity)(name); if (isDefined(fn)) { - if (isDefined(extPoint[name])) { - foreach(extPoint[name], function(property, key) { - if (key.charAt(0) == '$' && isUndefined(fn[key])) - fn[key] = property; - }); - } extPoint[name] = extend(fn, prop || {}); } return extPoint[name]; |
