It maybe worth mentioning what the 'this' is in a macro -
the <<mymacro>> will be parsed into a macrocall widget which invokes the
macro like so:
return macro.run.apply(this,args).toString(); //located in widget.js
so the 'this' comes from the instance of the macrocall widget in you
tiddler.
cheers
BJ
On Sunday, January 25, 2015 at 8:52:56 AM UTC-6, Tobias Beer wrote:
>
> access variable in js macro @dev5
>> <http://dev5.tiddlyspot.com/#access%20variable%20in%20js%20macro>
>>
>
> I added a little more prose. Let me know if things are unclear.
> Or ask if you need more details on something specific.
>
> Best wishes, Tobias.
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.