Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ea230ea

Browse files
IgorMinarrodyhaddad
authored andcommitted
chore: name the event callback used by ngClick and friends
This maskes looking at stack traces easier. Since we generate the callbacks for each event type at runtime and we can't set function's name because it's read-only, we have to use a generic name.
1 parent b68ac4c commit ea230ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/ngEventDirs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ forEach(
4545
return {
4646
compile: function($element, attr) {
4747
var fn = $parse(attr[directiveName]);
48-
return function(scope, element, attr) {
48+
return function ngEventHandler(scope, element) {
4949
element.on(lowercase(name), function(event) {
5050
scope.$apply(function() {
5151
fn(scope, {$event:event});

0 commit comments

Comments
 (0)