Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Полифил для bind (упрощенная версия)
- */
- function bind(func, ctx) {
- var boundArgs = [].slice.call(arguments, 2)
- return function() {
- var callArgs = boundArgs.concat([].slice.call(arguments))
- return func.apply(ctx, callArgs)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement