diff options
| author | Misko Hevery | 2011-04-18 16:33:30 -0700 |
|---|---|---|
| committer | Misko Hevery | 2011-06-08 15:21:31 -0700 |
| commit | 8cad231bd219eddd518de8b8bd040d3f12f08d17 (patch) | |
| tree | 75016fa6de683a877916f45a0fd06b1d0f312231 /src/directives.js | |
| parent | 0e17ade959cc77369dc102d180e43be2af68505a (diff) | |
| download | angular.js-8cad231bd219eddd518de8b8bd040d3f12f08d17.tar.bz2 | |
Refactor injector to have invoke method for speed reasons
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js index 680e8a72..34a1b27d 100644 --- a/src/directives.js +++ b/src/directives.js @@ -511,7 +511,7 @@ angularDirective("ng:bind-attr", function(expression){ * TODO: maybe we should consider allowing users to control event propagation in the future. */ angularDirective("ng:click", function(expression, element){ - return injectUpdateView(function($updateView, element){ + return annotate('$updateView', function($updateView, element){ var self = this; element.bind('click', function(event){ self.$tryEval(expression, element); @@ -561,7 +561,7 @@ angularDirective("ng:click", function(expression, element){ </doc:example> */ angularDirective("ng:submit", function(expression, element) { - return injectUpdateView(function($updateView, element) { + return annotate('$updateView', function($updateView, element) { var self = this; element.bind('submit', function(event) { self.$tryEval(expression, element); |
