[SOLVED] Stack Error : connection within foreach query
Posted: 09 August 2015, 22:17
Hi All
I'm having a little trouble with a stack error coming from attempting to set up connections within a foreach query.
I am trying something like:
I will hunt again for a solution in the morning, but if anyone has any insight on how to get around this, I would be very grateful.
Many thanks
Apollo
EDIT: have just stumbled across this forum post which looks promising.http://forum.boardgamearena.com/viewtop ... ach#p10871 Will let you know in the morning if it works!
I'm having a little trouble with a stack error coming from attempting to set up connections within a foreach query.
I am trying something like:
Code: Select all
dojo.query(".village").forEach(function(node, index, nodelist){ dojo.connect( node, 'onclick', this.onVillageClick ); });Many thanks
Apollo
EDIT: have just stumbled across this forum post which looks promising.http://forum.boardgamearena.com/viewtop ... ach#p10871 Will let you know in the morning if it works!