Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Remove event

1 reply [Last post]
Reply

For example I have 2 playlists: PL1 and PL2. I load PL1 and set some function (for example fun1()) to onPlaylistItem() event. Then I load PL2 and set another function (for example fun2()) to the same event. But after that both fun1() and fun2() functions are executed, but I need only fun2().
How can I fix that? Is there some function to remove event listeners?

Reply

link please

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options