mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 21:01:30 +02: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;
|
var self = this;
|
||||||
window.setTimeout(function() {
|
window.setTimeout(function() {
|
||||||
|
// If row template changes, self._callback might disappear
|
||||||
|
if(typeof self._callback != "undefined")
|
||||||
|
{
|
||||||
self._callback.call(self._context, idxStart, idxEnd);
|
self._callback.call(self._context, idxStart, idxEnd);
|
||||||
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user