2

Remove event Listener from selected tab [closed]

asked 2013-01-17 05:42:18 +0800

psingh gravatar image psingh flag of India
963 8

updated 2013-01-17 05:51:01 +0800

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.

Can anyone solve my problem?

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by sjoshi
close date 2013-02-08 06:41:12

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-01-22 08:37:44 +0800

psingh gravatar image psingh flag of India
963 8

updated 2013-01-22 08:38:06 +0800

We have to use the same EventListener instance to add or remove EventListener then it will work fine.

link publish delete flag offensive edit

Question tools

Follow

RSS

Stats

Asked: 2013-01-17 05:42:18 +0800

Seen: 44 times

Last updated: Jan 22 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More