Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
call original onclick() only if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr committed Nov 18, 2011
1 parent 9995c9c commit 1814104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kibi.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ kibi = new function() {
} }


document.onclick=function(e) { document.onclick=function(e) {
onclick(e) if(onclick) onclick(e)


e = (e || event).target e = (e || event).target


Expand Down

0 comments on commit 1814104

Please sign in to comment.