Permalink
Browse files

added .trigger() logger plugin

  • Loading branch information...
1 parent d980d2b commit ddd9a44446e0e2a59995ef2ac28a0b7812cc400a @Marak Marak committed Sep 3, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 client/js/app.js
View
7 client/js/app.js
@@ -151,6 +151,13 @@ $(function() {
pageLoad: function() {
+ // custom .trigger logger
+ var _trigger = $.fn.trigger;
+ $.fn.trigger = function(name,args,p){
+ console.log(name, args, _trigger);
+ return _trigger.apply(this,arguments);
+ };
+
jQuery.extend(jQuery.expr[':'], {
focus: "a == document.activeElement"
});

0 comments on commit ddd9a44

Please sign in to comment.