Hi, I just upgraded my angular.js from 1.0.2 to 1.0.3, and having an issue with this fix after the upgrade.
Since my app has some elements listen to event delegation from JQuery.
1.0.2
http://plnkr.co/edit/iSem7DYn3b3ERgpD2LTu?p=preview
1.0.3
http://plnkr.co/edit/1SR7IAwrxDmHcE553ylI?p=preview
However, it doesn't work anymore, as the "a" element (htmlAnchorDirective) "click" event now stop bubbling up...
I just looking at the JQuery Doc, it seems "event.preventDefault()" and "return false" should be doing different things.
http://api.jquery.com/bind/
Example: Cancel a default action and prevent it from bubbling up by returning false:
$("form").bind("submit", function() { return false; })
Example: Cancel only the default action by using the .preventDefault() method.
$("form").bind("submit", function(event) { event.preventDefault(); });
Sorry for my bad english...
Hi, I just upgraded my angular.js from 1.0.2 to 1.0.3, and having an issue with this fix after the upgrade.
Since my app has some elements listen to event delegation from JQuery.
1.0.2
http://plnkr.co/edit/iSem7DYn3b3ERgpD2LTu?p=preview
1.0.3
http://plnkr.co/edit/1SR7IAwrxDmHcE553ylI?p=preview
However, it doesn't work anymore, as the "a" element (htmlAnchorDirective) "click" event now stop bubbling up...
I just looking at the JQuery Doc, it seems "event.preventDefault()" and "return false" should be doing different things.
http://api.jquery.com/bind/
Example: Cancel a default action and prevent it from bubbling up by returning false:
$("form").bind("submit", function() { return false; })
Example: Cancel only the default action by using the .preventDefault() method.
$("form").bind("submit", function(event) { event.preventDefault(); });
Sorry for my bad english...