mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Make sure callback is there before trying to call it. If the template changes before the timeout fires, it might not be.
This commit is contained in:
parent
fde83c834e
commit
d22489e23b
@ -791,7 +791,11 @@ var et2_dataview_grid = et2_dataview_container.extend(et2_dataview_IViewRange,
|
||||
{
|
||||
var self = this;
|
||||
window.setTimeout(function() {
|
||||
self._callback.call(self._context, idxStart, idxEnd);
|
||||
// If row template changes, self._callback might disappear
|
||||
if(typeof self._callback != "undefined")
|
||||
{
|
||||
self._callback.call(self._context, idxStart, idxEnd);
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user