Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

or instead of a whole library use mozilla's compatibility when using bind... see the function here: https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...


Because modifying object prototypes is the way to go?


Depends if you're in an environment you control then yes - when embedding your scripts, don't do it. Create your own isolated functions and assume anything and everything can be broken e.g. Array.prototype is often modified with broken or semi incomplete functions like broken versions of indexOf




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: