Permalink
Browse files

call original onclick() only if it exists

  • Loading branch information...
1 parent 9995c9c commit 1814104d6e343d98db5b2305672404d7f8f4a139 @pitr pitr committed Nov 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/kibi.js
View
@@ -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 1814104

Please sign in to comment.