rem:  uppity.setSBButtonVis();  /*  var uppityListener={  onLocationChange:function(aProgress, aRequest, aURI) { var URLs=uppity.getURLs(); var cmd=document.getElementById('uppity-goUp-command'); if (cmd) { cmd.disabled=(0==URLs.length?'true':'false'); dump(cmd.disabled); } },   QueryInterface: function(aIID) { if (aIID.equals(Components.interfaces.nsIWebProgressListener) || aIID.equals(Components.interfaces.nsISupportsWeakReference) || aIID.equals(Components.interfaces.nsISupports) ) return this; throw Components.results.NS_NOINTERFACE; }, onStateChange:function() { return 0; }, onProgressChange:function() { return 0; }, onStatusChange:function() { return 0; }, onSecurityChange:function() { return 0; }, onLinkIconAvailable:function() { return 0; }, }   gBrowser.addProgressListener( uppityListener, Components.interfaces.nsIWebProgress.NOTIFY_STATE_DOCUMENT ); */  
add:  uppity.setSBButtonVis(); 
context: window.addEventListener('load', function() {//turn on/off status bar buttonuppity.setSBButtonVis();/*//set listener for disabling buttonsvar uppityListener={//the actual workonLocationChange:function(aProgress, aRequest, aURI) {	var URLs=uppity.getURLs();	var cmd=document.getElementById('uppity-goUp-command');	if (cmd) {		cmd.disabled=(0==URLs.length?'true':'false');		dump(cmd.disabled);	}},//the junk to get the interface rightQueryInterface: function(aIID) {	if (aIID.equals(Components.interfaces.nsIWebProgressListener) ||		aIID.equals(Components.interfaces.nsISupportsWeakReference) ||		aIID.equals(Components.interfaces.nsISupports)	) return this;	throw Components.results.NS_NOINTERFACE;},onStateChange:function() { return 0; },onProgressChange:function() { return 0; },onStatusChange:function() { return 0; },onSecurityChange:function() { return 0; },onLinkIconAvailable:function() { return 0; },}//close var uppityListener//register the listenergBrowser.addProgressListener(	uppityListener, 	Components.interfaces.nsIWebProgress.NOTIFY_STATE_DOCUMENT);*/}, false); // end window.addEventListener('load'...)
meta: 2321	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2321/20f97aa967cf88ccc889b1642856f10002c524f7/uppity.js/buggy/trunk/content/uppity.js