forked from extern/egroupware
Prevent error if node is not set, just use the root's egw
This commit is contained in:
parent
7184574fab
commit
725e8c25ac
@ -713,8 +713,11 @@ var et2_widget = Class.extend({
|
||||
if (this.implements(et2_IDOMNode))
|
||||
{
|
||||
var node = this.getDOMNode();
|
||||
if(node && node.ownerDocument)
|
||||
{
|
||||
wnd = node.ownerDocument.parentNode || node.ownerDocument.defaultView;
|
||||
}
|
||||
}
|
||||
|
||||
// If we're the root object, return the phpgwapi API instance
|
||||
return egw('phpgwapi', wnd);
|
||||
|
Loading…
Reference in New Issue
Block a user