Skip to content

Commit

Permalink
clearInstance helper
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Feb 23, 2022
1 parent 65bc53a commit 01efa4c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
const getInstance = (domElement) => {
return domElement.ibexaInstance;
}
const clearInstance = (domElement) => {
delete domElement.ibexaInstance;
}

ibexa.addConfig('helpers.objectInstances', {
setInstance,
getInstance,
clearInstance,
});
})(window, window.document, window.ibexa);

0 comments on commit 01efa4c

Please sign in to comment.