0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Remove Function.bind polyfill

- Not used anymore, and phantomjs 2 has a native .bind
This commit is contained in:
Jason Williams 2016-04-09 13:06:54 -05:00
parent d542ae86df
commit 63ba8a1031

View file

@ -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;
}