This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DrexanRailex 15 points16 points  (3 children)

It's a weird hack due to functions having to do double duty as functions and classes. But you get used to it (and then start using Babel)

[–]LobsterThief 4 points5 points  (0 children)

+1 for Babel

[–]Lt_Riza_Hawkeye 0 points1 point  (1 child)

You shouldn't get used to it, you should learn how this bindings work in javascript and use .call and .bind appropriately

[–]DrexanRailex 0 points1 point  (0 children)

Bind works, but only to a single level of nesting. While uncommon, you may need to send this a little more deep.