Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Function.prototype.bind()
  2. var newFunc = obj.someFunc.bind(myobj, 1, 2, 3);
  3. //also used for carring, but carring can be used without .bind()
  4.  
  5. //also can be used $.proxy instead of bind
  6. $.proxy( function, context )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement