mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:16 +01:00
remove own iterateOver implementation again, as it is already handled in parent class and creates additional problems
This commit is contained in:
parent
7a49d11e52
commit
debf2e03f3
@ -1067,30 +1067,6 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned, et2_IResize
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Function which allows iterating over the complete widget tree.
|
||||
*
|
||||
* @param _callback is the function which should be called for each widget
|
||||
* @param _context is the context in which the function should be executed
|
||||
* @param _type is an optional parameter which specifies a class/interface
|
||||
* the elements have to be instanceOf.
|
||||
*/
|
||||
iterateOver: function(_callback, _context, _type)
|
||||
{
|
||||
if (!this.cells) return;
|
||||
|
||||
for(var r=0; r < this.cells.length; ++r)
|
||||
{
|
||||
var row = this.cells[r];
|
||||
for(var c=0; c < row.length; ++c)
|
||||
{
|
||||
if (!row[c].widget) continue;
|
||||
|
||||
row[c].widget.iterateOver(_callback, _context, _type);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
et2_register_widget(et2_grid, ["grid"]);
|
Loading…
Reference in New Issue
Block a user