Skip to content
Browse files

Merge pull request #3 from pitr/patch-1

call original onclick() only if it exists
  • Loading branch information...
2 parents 9995c9c + 1814104 commit 29ef7d57afbe0beb32b0cda51f66addbe5d97ab8 @jed jed committed Nov 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/kibi.js
View
2 src/kibi.js
@@ -22,7 +22,7 @@ kibi = new function() {
}
document.onclick=function(e) {
- onclick(e)
+ if(onclick) onclick(e)
e = (e || event).target

0 comments on commit 29ef7d5

Please sign in to comment.
Something went wrong with that request. Please try again.