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