diff options
| author | Vojta Jina | 2011-11-30 12:23:58 -0800 |
|---|---|---|
| committer | Vojta Jina | 2012-01-23 11:11:27 -0800 |
| commit | 0196411dbe179afe24f4faa6d6503ff3f69472da (patch) | |
| tree | 8c79c809b884af8385ad2695c4885b18a5efa369 /test/service/compilerSpec.js | |
| parent | 992c790f0786fa45c1cc3710f29bf49c7c322ba7 (diff) | |
| download | angular.js-0196411dbe179afe24f4faa6d6503ff3f69472da.tar.bz2 | |
refactor(scope.$watch): rearrange arguments passed into watcher (newValue, oldValue, scope)
As scopes are injected into controllers now, you have the reference anyway, so having scope as first argument makes no senseā¦
Breaks $watcher gets arguments in different order (newValue, oldValue, scope)
Diffstat (limited to 'test/service/compilerSpec.js')
| -rw-r--r-- | test/service/compilerSpec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/service/compilerSpec.js b/test/service/compilerSpec.js index 6e6c211b..2df15c51 100644 --- a/test/service/compilerSpec.js +++ b/test/service/compilerSpec.js @@ -17,7 +17,7 @@ describe('compiler', function() { observe: function(expression, element){ return function() { - this.$watch(expression, function(scope, val){ + this.$watch(expression, function(val) { if (val) log += ":" + val; }); |
