From 63ba8a103100da6c4e89369889e97829bc0ab3cd Mon Sep 17 00:00:00 2001 From: Jason Williams Date: Sat, 9 Apr 2016 13:06:54 -0500 Subject: [PATCH] Remove Function.bind polyfill - Not used anymore, and phantomjs 2 has a native .bind --- ghost/admin/app/utils/bind.js | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 ghost/admin/app/utils/bind.js diff --git a/ghost/admin/app/utils/bind.js b/ghost/admin/app/utils/bind.js deleted file mode 100644 index e3fd060354..0000000000 --- a/ghost/admin/app/utils/bind.js +++ /dev/null @@ -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; -}