||View All MessagesBack to WebFX|
You are correct. However I think that the following test would make more sense:|
if (oElement.tabPage && oElement.tabPage.tabPane == this)
because what you really want to check is wether the element is bound to a page and wether that page is part of the pane.
Your test seems to just test that the element is bound to an element?
I realize that there is missing code for actually removing the page from a pane but that is another bug.
In tabpane.js file at line 136 in the function
there's a test to check whether the element to be added is already added:
if ( oElement.tabPage == this ) // already added
But the test check if the tabPage of the element refer to the tabPane (this).
The test should be
if (oElement.tabPage.element == oElement)