aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/directives.js')
-rw-r--r--src/directives.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/directives.js b/src/directives.js
index ea09fc06..54469ea7 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -524,9 +524,8 @@ angularDirective("ng:click", function(expression, element){
angularDirective("ng:submit", function(expression, element) {
return function(element) {
var self = this;
- element.bind('submit', function(event) {
+ element.bind('submit', function() {
self.$apply(expression);
- event.preventDefault();
});
};
});