mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Prevent error if node is not set, just use the root's egw
This commit is contained in:
parent
7184574fab
commit
725e8c25ac
@ -713,7 +713,10 @@ var et2_widget = Class.extend({
|
||||
if (this.implements(et2_IDOMNode))
|
||||
{
|
||||
var node = this.getDOMNode();
|
||||
wnd = node.ownerDocument.parentNode || node.ownerDocument.defaultView;
|
||||
if(node && node.ownerDocument)
|
||||
{
|
||||
wnd = node.ownerDocument.parentNode || node.ownerDocument.defaultView;
|
||||
}
|
||||
}
|
||||
|
||||
// If we're the root object, return the phpgwapi API instance
|
||||
|
Loading…
Reference in New Issue
Block a user