Jump to content


- - - - -

overload js question


  • Please log in to reply
1 reply to this topic

#1 KaneMods

KaneMods

    Novice

  • Members
  • PipPip
  • 14 posts
  • Real Name:Kane
  • IPB Version:v3.2.x

Posted 18 December 2011 - 02:47 AM

How do we overload a js module? I made a hook to overload the messenger js module but apparently it won't work.

#2 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 22 January 2012 - 11:46 AM

You can't overload the JS functions like you would in PHP, but you can "steal" the events from it, and set up your own, using Element.stopObserving().




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users