2 ms·
Come off it. JavaScript's 'this' is meant to be usable in such a manner. http://es5.github.io/#x15.3.4.3 http://es5.github.io/#x15.3.4.3
by juliangregorian 11y ago
Come off it. JavaScript's 'this' is meant to be usable in such a manner. http://es5.github.io/#x15.3.4.3 http://es5.github.io/#x15.3.4.3
- rubiquity 11y agoUsing bind like that is perfectly fine in application code but I consider that a big violation of Principle of Least Surprise in library code. Nearly every programming language in existence has some feature(s) that you can shoot yourself in the foot with. Does that mean you should do it?
- juliangregorian 11y agoIt's pretty standard practice for JavaScript libs. How much do you actually use JavaScript?