Skip to content

Instantly share code, notes, and snippets.

@ThisIsMissEm
Created November 8, 2009 05:10
Show Gist options
  • Save ThisIsMissEm/229105 to your computer and use it in GitHub Desktop.
Save ThisIsMissEm/229105 to your computer and use it in GitHub Desktop.
jet.monitor = function(ns){
var parts = ns.split("."),
m = parts.pop();
fn = jet.namespace(parts.join("."))[m];
return function(){
console.log(ns+"("+Array.prototype.join.call(arguments, ", ")+")");
return fn.apply(jet.global, arguments || []);
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment