That's a correct observation Rob. Variables such as "rootFolder" are bound just before script execution begins while a method call, like window.explorer.getRootFolder() does a dynamic lookup.
Thanks for confirming. I have added a note in the
General section of the developer centre. It is more likely to be seen than in this thread.