title: Zk Remove event Listener from selected tab
body: <p>I have 2 tabs one is Parent tab and other is child tabs.I have created Parent tab and put listener using onClose event dynamically to it and then creating child tabs. Actually I want that when user clicks on close button of Tab, he is not able to close and get message so I put event.stopPropogation() to handle the close event. After creation of child tabs, event listener should be removed out from parent tab.But listener is not removing from parent tab. As I am using removeEventlistener but it is also not working.</p>
  
  <p>First Time I am calling a method in which I am adding event listener to the parent tab.</p>
  
  <pre><code> mainTab.getSelectedTab().addEventListener(Events.ON_CLOSE,
                  new EventListener&lt;Event&gt;() {
                      public void onEvent(Event event) throws Exception {
  
      event.stopPropogation();
          showWarning(message);
      return;
  
  }
                  });
  </code></pre>
  
  <p>then after creating all child Tabs I have to remove this listener.I am using...</p>
  
  <pre><code>mainTab.getSelectedTab().removeEventListener(Events.ON_CLOSE,
                      new EventListener&lt;Event&gt;() {
                          public void onEvent(Event event) throws Exception {
  
  
  
      }
                      });
  </code></pre>
  
  <p>this listener is not working on this tab but when I open new tab (sibling of main tab) then listener is not called.</p>
  
  <p>How to remove listener from current tab?</p>
  
  <p>Can anyone solve my problem?</p>