As I delve into a JavaScript file, I stumble upon the following lines:
var myPage = new Object();
var myDocument = document.all;
After some code, there is another interesting snippet:
myPage.Search = myDocument.Search;
myPage.Search.searchType = "Description";
While using Eclipse with Aptana, I can't help but question why someone would do this:
myPage.Search = myDocument.Search;
Why not simply go with:
myDocument.Search.searchType = "Description";