diff options
Diffstat (limited to 'client/lib/popup.js')
-rw-r--r-- | client/lib/popup.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/lib/popup.js b/client/lib/popup.js index 797eb26d..7cceaa4f 100644 --- a/client/lib/popup.js +++ b/client/lib/popup.js @@ -142,6 +142,11 @@ window.Popup = new class { } } + getOpenerComponent() { + const { openerElement } = Template.parentData(4); + return BlazeComponent.getComponentForElement(openerElement); + } + // An utility fonction that returns the top element of the internal stack _getTopStack() { return this._stack[this._stack.length - 1]; |