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:
parent
d542ae86df
commit
63ba8a1031
1 changed files with 0 additions and 13 deletions
|
@ -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…
Add table
Reference in a new issue