diff options
Diffstat (limited to 'src/ng/directive/ngEventDirs.js')
| -rw-r--r-- | src/ng/directive/ngEventDirs.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/ng/directive/ngEventDirs.js b/src/ng/directive/ngEventDirs.js index 43047ad9..9420f720 100644 --- a/src/ng/directive/ngEventDirs.js +++ b/src/ng/directive/ngEventDirs.js @@ -43,7 +43,7 @@ forEach(      ngEventDirectives[directiveName] = ['$parse', function($parse) {        return function(scope, element, attr) {          var fn = $parse(attr[directiveName]); -        element.bind(lowercase(name), function(event) { +        element.on(lowercase(name), function(event) {            scope.$apply(function() {              fn(scope, {$event:event});            }); @@ -265,7 +265,7 @@ forEach(     </doc:example>   */  var ngSubmitDirective = ngDirective(function(scope, element, attrs) { -  element.bind('submit', function() { +  element.on('submit', function() {      scope.$apply(attrs.ngSubmit);    });  }); | 
