call renderDetails(m_curDetRecData) only if the global variable
m_curDetRecData is set.
m_curDetRecData will be set in my_onrecord(), and apparently there
is a race condtion that m_curDetRecData is not set yet, or will
be reset in showDetails() later. This should fix MKWS-105
renderSummary(hit),
'</div>');
if (hit.recid == m_curDetRecId) {
- html.push(renderDetails(m_curDetRecData));
+ if (m_curDetRecData)
+ html.push(renderDetails(m_curDetRecData));
}
}
results.html(html.join(''));