Skraund Posted April 10, 2018 Share Posted April 10, 2018 Hello, getRootElement - this is the same as root? Link to comment
Moderators Popular Post IIYAMA Posted April 10, 2018 Moderators Popular Post Share Posted April 10, 2018 (edited) No.no.no getRootElement is a function. root is a predefined variable that contains the root element. When you execute getRootElement it will return the value: root element: getRootElement == root -- false -- call the getRootElement function getRootElement() == root -- true So yes, in the end it doesn't matter which one you use. Except that with getRootElement you have to make one function call more before you have access to the value.(performance) Edited April 10, 2018 by IIYAMA 4 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