Hi,
This works by the way:
That's exactly how you do it.
I'm confused, since this is similar, minus the bindAsEventListener.
The difference is in when the `$('SCORES').down('div.grid table'));`
part happens. In your earlier code:
document.observe(
'MeetQuery:lookup_scores',
T.J. I've moved on from this but shall return. I'm having a similar problem
with bindAsEventListener, I have the following:
document.observe('MeetQuery:lookup_scores',
_msoRSess.appear.bindAsEventListener(_msoRSess,
$('SCORES').down.bind('div.grid table'));
Where the 2nd argument in
This works by the way:
document.observe('MeetQuery:lookup_scores', function(event) {
_msoRSess.appear($('SCORES').down('div.grid table')); });
I'm confused, since this is similar, minus the bindAsEventListener.
--
You received this message because you are subscribed to the Google Groups
Hi,
Based on that code, the `this` value in `_msoSGrid.load` definitely
refers to `_msoSGrid`. What makes you think the context during the
call is wrong? I'd say there's an issue with the actual `load`
function, because the call to it is absolutely fine.
-- T.J.
On Dec 25, 3:00 am, kstubs
Hi,
Your first version should be working. Assuming _msoSGrid is in scope
in that function, `_msoSGrid.load(event.memo.Json);` _will_ call
`load` with `this` set to `_msoSGrid`.
Your second example doesn't work because all you're doing is binding
the function, not actually calling it. But there's
Surrounding code and NOTE, this code: _msoS.Get(meetid), it's ajax response,
triggers the event MeetQuery:lookup_scores.
document.observe('dom:loaded', function() {
var meetid = $('MEET_ID').innerHTML;
_msoAM = new msoActiveMeets();
_msoRE = new msoRecentEvents();
_msoS = new