pane from the page layout to the object. Something like:
this.$pane = new Craft.Pane($(".pane"));
That line of code kinda works. However, when the page loads the console reports:
Double-instantiating a pane on an element
If I remove the above line of code
this.$pane = new Craft.Pane($(".pane"));, the console log message goes away. With the line of code some things work. Without the line of code other things work. I need all the things to work at the same time.
I'm struggling to know the right question to ask, so please point me in the right direction if I am off the mark. Is it possible to check if there is an existing
Craft.Pane object that exists before I try to create a
new Craft.Pane object?