Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: EqualMedia/dojo
base: bcdbeaba10
...
head fork: EqualMedia/dojo
compare: d366e2aeb8
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 1 deletion.
  1. +11 −1 on.js
View
12 on.js
@@ -105,7 +105,17 @@ define(["./has!dom-addeventlistener?:./aspect", "./_base/kernel", "./has"], func
return addListener(target, type, listener, dontFix, matchesTarget);
};
var touchEvents = /^touch/;
- function addListener(target, type, listener, dontFix, matchesTarget){
+ function addListener(target, type, _listener, dontFix, matchesTarget){
+ var listener = _listener;
+ if(typeof on.handleError === "function"){
+ listener = function(){
+ try{
+ return _listener.apply(this, arguments);
+ }catch(err){
+ on.handleError(err);
+ }
+ };
+ }
// event delegation:
var selector = type.match(/(.*):(.*)/);
// if we have a selector:event, the last one is interpreted as an event, and we use event delegation

No commit comments for this range

Something went wrong with that request. Please try again.