Unanswered: Pass a parameter to callback function in Architect?
Unanswered: Pass a parameter to callback function in Architect?
Is it possible to pass a parameter to a callback function (I need to be able to use 'this' in my callback method )?
Here's my call (that isn't passing a parameter yet). I know I can make the callback function inline (and use a local variable that = this) but I call it all over so I'd rather not duplicate the code.
ok, maybe there is a way to pass parameters to callback function but I haven't been able to find out how. In the meantime, this is how I solved my problem - I changed my callback function to an inline function and then have that callback function call another function. I like this because I don't have to duplicated the function that is now called in the callback everywhere.