prototype bind support? #363
Replies: 8 comments
-
Posted at 2014-11-19 by @gfwilliams Hi - I'm afraid it doesn't support it yet... It's on my list though :) So the issue you have is that 'this' generally gets reset when you call
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-11-19 by d0773d Works like a charm :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-03-31 by @allObjects @d0773d, @gordon just most recently made .bind() work / implemented... see this conversation. Now you do not need the application defined anonymous function anymore, and the .bind() is more efficient in all ways. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-06 by d0773d @allObjects thanks for updating my post. I will definitely impliment bind(). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-20 by WebReflection As temporary work around on top of your file:
In case you don't care about handling extra arguments ...
Until it's solved, of course |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-20 by @gfwilliams
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-20 by WebReflection Actually I've just realized |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-20 by @gfwilliams Yes, that's not right... Something strange is going on there - Thanks for letting me know. It still works though - I think it's just the way it appears. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-11-19 by d0773d
Hi, my question kind of relates to my question from: generic pause/wait? I'm trying to wrap my head around how prototypeing works. does the Espruino support bind? For example:
I receive error:
Beta Was this translation helpful? Give feedback.
All reactions