huituanxueqian 7740728225 commit | 1 gadu atpakaļ | |
---|---|---|
.. | ||
test | 1 gadu atpakaļ | |
.editorconfig | 1 gadu atpakaļ | |
.eslintrc | 1 gadu atpakaļ | |
.jscs.json | 1 gadu atpakaļ | |
.npmignore | 1 gadu atpakaļ | |
.travis.yml | 1 gadu atpakaļ | |
LICENSE | 1 gadu atpakaļ | |
README.md | 1 gadu atpakaļ | |
implementation.js | 1 gadu atpakaļ | |
index.js | 1 gadu atpakaļ | |
package.json | 1 gadu atpakaļ |
Implementation of function.prototype.bind
I mainly do this for unit tests I run on phantomjs. PhantomJS does not have Function.prototype.bind :(
Function.prototype.bind = require("function-bind")
npm install function-bind