Hi Pat,

IMO you are referring to $tw.utils.pushTop() [1]. As you can see in the 
source the function has a return value. 

So it's possible to say: var x = $tw.utils.pushTop(["my"], "test") and

var x = ["my"];
$tw.utils.pushTop(x, ["test", "asdf"])

which has the same function.

JS references variables by pointer. So if you pass variables around, you 
modify the "original" variable. 

have fun!
mario

[1] 
https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/utils/utils.js#L65

-- 
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.

Reply via email to