Jump to content

triggerEvent


GhostXoP

Recommended Posts

Posted

the second parameter of triggerEvent is to represent the element triggering the event? Or who it pertains to?

This entire time i was using getRootElement() until i read the CPU intensive bit, so now i assume it is the element it pertains to

Posted

In the wiki you see that it recommends not to trigger the event on the root element unless you really need to, because this triggers the event on every element in the element tree, which is potentially very CPU intensive.

Posted

Thats when i figured it had mean't the second parameter was the element it was triggering the event for.

Am i right? Is this to show that its triggering AS the root element, or TO the root element?

Posted

This whole time i was thinking it was AS, (the source to the element being receiving the event)

Thank you. triggerEvent(EventString,ToElement, arguments)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...