« Return to Thread: window. or this. prefix

window. or this. prefix

by mikewse :: Rate this Message:

Reply to Author | View in Thread

Hi Joe,
 
I saw that you've gone from
    var dwr = {};
to
    window['dwr'] = {};
and then to
    this.dwr = {};
in engine/util.js. (BTW: in what version should the old DWREngine/DWRUtil names disappear?)
 
I'm following you with the window version, but what is the rationale for the latest version with |this| ?
Maybe it is because of integrating with unit tests, or for multiple frame windows? Either way it would be interesting to have a discussion about what we want to do in these cases.
 
Best regards
Mike

 « Return to Thread: window. or this. prefix