I'm creating links through DOM, as follows:
var flagLink = A({"class": classstring,"href" : "#"},Flags[i]);
appendChildNodes(flagDiv,flagLink);
connect(flagLink,"onclick",this,partial(this.ToggleFlag,Flags[i]));
ToggleFlag is defined as follows (for now):
ToggleFlag = function(a,b){
log(repr(b));
}
What I cannot understand is why b.src() is not an HTML link element, as
I'd expect (and like all my other onclick handlers receive, on divs,
etc), but is actually my resolved HREF entry for the A tag... it makes
it impossible for me to backreference the link from ToggleFlag and
change a property on it.
Is this a bug, or is there some different way I'm supposed to be
handling this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---