GhostXoP Posted November 29, 2012 Share 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 Link to comment
Castillo Posted November 29, 2012 Share 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. Link to comment
GhostXoP Posted November 29, 2012 Author Share 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? Link to comment
Castillo Posted November 29, 2012 Share Posted November 29, 2012 I think it's to the root element. Link to comment
GhostXoP Posted November 29, 2012 Author Share 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) Link to comment
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