richtaur (owner)

Revisions

gist: 232720 Download_button fork
public
Public Clone URL: git://gist.github.com/232720.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Function.prototype._ = function() {
 
  var that = this, args = arguments;
 
  return function() {
    that.apply(that, args);
  };
 
};
 
function foo(bar) {
  alert(bar);
}
 
//setTimeout(function() { foo('bar'); }, 1);
setTimeout(foo._('bar'), 1);