root 3bf41bf355 update | il y a 1 an | |
---|---|---|
.. | ||
test | il y a 1 an | |
.editorconfig | il y a 1 an | |
.eslintrc | il y a 1 an | |
.jscs.json | il y a 1 an | |
.npmignore | il y a 1 an | |
.travis.yml | il y a 1 an | |
LICENSE | il y a 1 an | |
README.md | il y a 1 an | |
implementation.js | il y a 1 an | |
index.js | il y a 1 an | |
package.json | il y a 1 an |
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