mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Merge pull request #6694 from jaswilli/bind
Remove Function.bind polyfill
This commit is contained in:
commit
89a86249f5
@ -1,13 +0,0 @@
|
||||
const {slice} = Array.prototype;
|
||||
|
||||
export default function (/* func, args, thisArg */) {
|
||||
let args = slice.call(arguments);
|
||||
let func = args.shift();
|
||||
let thisArg = args.pop();
|
||||
|
||||
function bound() {
|
||||
return func.apply(thisArg, args);
|
||||
}
|
||||
|
||||
return bound;
|
||||
}
|
Loading…
Reference in New Issue
Block a user