OK, I'm confused. I'm observing a custom event "MeetQuery:lookup_scores"
which is working fine (not the problem as I can see) and I need to call
_msoSGrid.load in the context of _msoSGrid. As is, the context of this in
the load event is Window; it should be _msoSGrid.
** below code set on document:load **
document.observe('MeetQuery:lookup_scores', function(event) {
_msoSGrid.load(event.memo.Json); }
);
** this does not work **
document.observe('MeetQuery:lookup_scores', function(event) {
_msoSGrid.load.bind(_msoSGrid, event.memo.Json); }
);
What's wrong?
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.