Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if(!Function.prototype.bind)
  2. {
  3.         Function.prototype.bind = function()
  4.         {
  5.                 var args = arguments;
  6.                 var self = this;
  7.                 return function()
  8.                 {
  9.                         self.apply(args[0], Array.prototype.slice.call(args, 1));
  10.                 };
  11.         };
  12. }