This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Brian Byle
Posted Aug 13 - Read on Facebook

Ok. Been looking at the fat arrow vs the skinny arrow when defining functions. Thus led to callback functions and function binding.

Can someone please give a practical example of when a callback function would be used?

Thx in advance!

4 Comments

Jordan Robert Dobson

This is a good question and I'm not always 100% on the correct answer. I tend to go skinny arrow and if things aren't working as I expect, I try the fat arrow. I believe the fat arrow is supposed to help keep context when called VS being more like an anonymous function. But I could be wrong. I actually haven't used it in a while to be honest.

Brian Byle

Thx all. I'm glad I'm not the only one who doesn't have this figured out!

Thx Jared that link helped clear the fog!

Brian Byle

Just a follow up. Been doing a lot of reading on this and found this GREAT resource:

http://helephant.com/2009/11/29/javascript-method-context/

Read the entire post on Facebook