mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Slight performance improvement on rendering elements with many children.
This commit is contained in:
parent
6eb5fead04
commit
323d276fa6
@ -298,6 +298,9 @@ var et2_DOMWidget = et2_widget.extend(et2_IDOMNode,
|
||||
var idx = 0;
|
||||
var children = this._parent.getChildren();
|
||||
|
||||
if(children && children.indexOf) return children.indexOf(this);
|
||||
|
||||
egw.debug('warn', 'No Array.indexOf(), falling back to looping. ');
|
||||
for (var i = 0; i < children.length; i++)
|
||||
{
|
||||
if (children[i] == this)
|
||||
|
Loading…
Reference in New Issue
Block a user