Dailin 415ba84223 | pirms 4 gadiem | ||
---|---|---|---|
.. | |||
test | 删除 | pirms 4 gadiem | |
.editorconfig | pirms 4 gadiem | ||
.eslintrc | pirms 4 gadiem | ||
.jscs.json | pirms 4 gadiem | ||
.npmignore | pirms 4 gadiem | ||
.travis.yml | pirms 4 gadiem | ||
LICENSE | pirms 4 gadiem | ||
README.md | pirms 4 gadiem | ||
implementation.js | pirms 4 gadiem | ||
index.js | pirms 4 gadiem | ||
package.json | pirms 4 gadiem |
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