feat(ags popup): allow setting child after init
This commit is contained in:
parent
d2059e3d1d
commit
28570f7ac2
1 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,7 @@ export default ({
|
|||
onClose(child);
|
||||
}
|
||||
}]],
|
||||
child: child,
|
||||
child: child || Box(),
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
@ -62,7 +62,8 @@ export default ({
|
|||
// Make getting the original child passed in
|
||||
// this function easier when making more code
|
||||
// for the widget
|
||||
window.getChild = () => child;
|
||||
window.getChild = () => window.child.children[0].child;
|
||||
window.setChild = newChild => window.child.children[0].child = newChild;
|
||||
|
||||
// This is for my custom pointers.js
|
||||
window.closeOnUnfocus = closeOnUnfocus;
|
||||
|
|
Loading…
Reference in a new issue