forked from extern/egroupware
Bind app.appname.function context so widget can't lose it
This commit is contained in:
parent
decd64e7c3
commit
d5652c2f7e
@ -71,7 +71,8 @@ export function et2_compileLegacyJS(_code, _widget, _context)
|
||||
}
|
||||
}
|
||||
if (typeof parent[existing_func] === "function") {
|
||||
return parent[existing_func];
|
||||
// Bind the object so no matter what happens, context is correct
|
||||
return parent[existing_func].bind(parent);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user