rem: var object = this; 
add: var object = this; 
context:     initDialog : function() {         // Put product brand short name in prompt.         var prompt = this.dialogElement( "prompt" );         var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) );         prompt.firstChild.nodeValue = modified;         // Put file name in window title.         var win   = this.dialogElement( "nsHelperAppDlg" );         var url   = this.mLauncher.source.QueryInterface( Components.interfaces.nsIURL );         var fname = "";         this.mSourcePath = url.prePath;         if ( url ) {             // A url, use file name from it.             fname = url.fileName;             this.mSourcePath += url.directory;         } else {             // A generic uri, use path.             fname = this.mLauncher.source.path;             this.mSourcePath += url.path;         }         var title = this.replaceInsert( win.getAttribute( "title" ), 1, fname );         win.setAttribute( "title", title );         // Put content type and location into intro.         this.initIntro();         // Add special debug hook.         if ( this.debug ) {             var prompt = this.dialogElement( "prompt" );             prompt.setAttribute( "onclick", "dialog.doDebug()" );         }         // Put explanation into text box.         this.initExplanation();         // Set default selection (always the "default").         this.dialogElement( "default" ).checked = true;         // If default is not to save to disk, then make that the alternative.         if ( this.mLauncher.MIMEInfo.preferredAction != Components.interfaces.nsIMIMEInfo.saveToDisk ) {             this.dialogElement( "saveToDisk" ).checked = true;         } else {             this.dialogElement( "openUsing" ).checked = true;         }         // Disable selection under "different action".         this.option();         // Set up dialog button callbacks.         var object = this; // "this.onOK()" doesn't work ?!         this.mDialog.doSetOKCancel( function () { return object.onOK(); },                                     function () { return object.onCancel(); } );         // Position it.         if ( this.mDialog.opener ) {             this.mDialog.moveToAlertPosition();         } else {             this.mDialog.centerWindowOnScreen();         }    },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/3774c933783855a91fbb90ed05dee1f9b5a2c2c7/nsHelperAppDlg.js/buggy/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js