aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/directives.js')
-rw-r--r--src/directives.js4
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);