GhostXoP Posted November 29, 2012 Posted November 29, 2012 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
Castillo Posted November 29, 2012 Posted November 29, 2012 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.
GhostXoP Posted November 29, 2012 Author Posted November 29, 2012 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?
GhostXoP Posted November 29, 2012 Author Posted November 29, 2012 This whole time i was thinking it was AS, (the source to the element being receiving the event) Thank you. triggerEvent(EventString,ToElement, arguments)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now