PDA

View Full Version : [CLOSED]window.status usage



LesJ
22 Feb 2011, 4:33 PM
I see code like this in ext-core-debug.js. I was told window.status is not supported reliably across browsers, so why bother?


window.status = "All dependencies are loaded. (" + this.numLoadedFiles + " files in " +
((Ext.Date.now() - this.startLoadingTime) / 1000)+"s | using " +
Math.round(((this.numLoadedFiles / Ext.Object.getSize(Manager.maps.nameToAliases)) * 100)) + "% of the whole library)";

window.status = "Loaded: " + className + " (" + this.numLoadedFiles + " total)";

Jacky Nguyen
22 Feb 2011, 6:43 PM
It's purely for IE 6 -> 8 debugging. They're all automatically stripped out in the minified file.

Jacky Nguyen
22 Feb 2011, 6:44 PM
Also that will be changed to use the new Logger soon