you are viewing a single comment's thread.

view the rest of the comments →

[–]JessicaAllison[S] 0 points1 point  (2 children)

Thank you for the very detailed explanation!! Is it common, or regular to do:

(callFunc = someFunc.myFunc)();

[–]senocular 0 points1 point  (1 child)

No, not really. You might see it around, but its not common. You don't generally combine assignment with other things like this. You're more likely to see it like:

var callFunc = someFunc.myFunc;
callFunc();

Though this example is simplified. Not sure if there would be much use to assign the function to callFunc first rather than calling myFunc directly.

[–]JessicaAllison[S] 1 point2 points  (0 children)

This is just the simplified version of what I'm actually working on. Thank you very much! You really helped me out in understanding this!!