rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var disableReloadPref = document.getElementById("pref.advanced.proxies.disable_button.reload"); disableReloadPref.disabled = proxyTypePref.value != 2; | this.updateReloadButton(); | proxyTypeChanged: function () { var proxyTypePref = document.getElementById("network.proxy.type"); // Update http var httpProxyURLPref = document.getElementById("network.proxy.http"); httpProxyURLPref.disabled = proxyTypePref.value != 1; var httpProxyPortPref = document.getElementById("network.pro... |
} | function Publish(publishData){ if (!publishData) return false; // Set data in global for username password requests // and to do "post saving" actions after monitoring nsIWebProgressListener messages // and we are sure file transfer was successful gPublishData = publishData; gPublishData.docURI = CreateURIFr... | |
calendarPublish(calendarString, "ftp: | calendarPublish(calendarString, Server, FilePath, UserName, Password, "text/calendar"); | function publishCalendarData(){ var calendarString = eventArrayToICalString( gCalendarWindow.EventSelection.selectedEvents ); calendarPublish(calendarString, "ftp://home.planet.com/", "CalendarDataFile.ics", "ajb", "*****", "text/calendar");} |
publishItemArray(gCalendarWindow.EventSelection.selectedEvents, CalendarPublishObject.remotePath, aProgressDialog); | publishItemArray(currentView().getSelectedItems({}), CalendarPublishObject.remotePath, aProgressDialog); | function publishCalendarDataDialogResponse(CalendarPublishObject, aProgressDialog){ publishItemArray(gCalendarWindow.EventSelection.selectedEvents, CalendarPublishObject.remotePath, aProgressDialog);} |
var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); var node = gCalendarWindow.calendarManager.rdf.getNode( name ); var remotePath = node.getAttribute( "http: if( remotePath != "" ) { var publishObject = new Object( ); publishObject.username = node.getAttribute( "http: var arrayOfPath = remotePath.s... | function publishEntireCalendar(){ var args = new Object(); args.onOk = self.publishEntireCalendarDialogResponse; openDialog("chrome://calendar/content/publishDialog.xul", "caPublishEvents", "chrome,modal", args );} | |
node.setAttribute("http: | if( node.getAttribute("http: node.setAttribute("http: | function publishEntireCalendarDialogResponse( CalendarPublishObject ){ //update the calendar object with the publish information var name = gCalendarWindow.calendarManager.getSelectedCalendarId(); //get the node var node = gCalendarWindow.calendarManager.rdf.getNode( name ); node.setAttribute("http://ho... |
delete this.parent.users[this.name]; | delete this.parent.users[this.canonicalName]; | function puser_clear(){ this.prefs["hasPrefs"] = false; delete this.parent.users[this.name];} |
function putItemsIntoCal(destCal) { | function putItemsIntoCal(destCal, aItems) { | function putItemsIntoCal(destCal) { // Set batch for the undo/redo transaction manager startBatchTransaction(); // And set batch mode on the calendar, to tell the views to not // redraw until all items are imported destCal.startBatch(); // This listener is needed to find out when the last addItem real... |
if (count == gItems.length) { | if (count == aItems.length) { | function putItemsIntoCal(destCal) { // Set batch for the undo/redo transaction manager startBatchTransaction(); // And set batch mode on the calendar, to tell the views to not // redraw until all items are imported destCal.startBatch(); // This listener is needed to find out when the last addItem real... |
for each (item in gItems) { | for each (item in aItems) { | function putItemsIntoCal(destCal) { // Set batch for the undo/redo transaction manager startBatchTransaction(); // And set batch mode on the calendar, to tell the views to not // redraw until all items are imported destCal.startBatch(); // This listener is needed to find out when the last addItem real... |
if (row.getProperties) | if ("getProperties" in row) | function pv_cellprops (index, colID, properties){ if (colID != "project-col-0") return null; var row = this.childData.locateChildByVisualRow(index); if (row) { if (row.getProperties) return row.getProperties (properties); if (row.property) return properties.App... |
if (row.property) | if ("property" in row) | function pv_cellprops (index, colID, properties){ if (colID != "project-col-0") return null; var row = this.childData.locateChildByVisualRow(index); if (row) { if (row.getProperties) return row.getProperties (properties); if (row.property) return properties.App... |
rv.net = this.currentObject.parent.name; | rv.net = this.currentObject.parent.unicodeName; | function pwin_onAddObject(){ var rv = new Object(); /* Try to nobble the current selection and pre-fill as needed. */ switch (this.currentObject.parent.TYPE) { case "PrefNetwork": rv.type = "net"; rv.net = this.currentObject.parent.name; break; case "PrefCh... |
rv.net = this.currentObject.parent.parent.parent.name; rv.chan = this.currentObject.parent.name; | rv.net = this.currentObject.parent.parent.parent.unicodeName; rv.chan = this.currentObject.parent.unicodeName; | function pwin_onAddObject(){ var rv = new Object(); /* Try to nobble the current selection and pre-fill as needed. */ switch (this.currentObject.parent.TYPE) { case "PrefNetwork": rv.type = "net"; rv.net = this.currentObject.parent.name; break; case "PrefCh... |
if (!confirm(getMsg(MSG_PREFS_OBJECT_DELETE, sel.parent.name))) | if (!confirm(getMsg(MSG_PREFS_OBJECT_DELETE, sel.parent.unicodeName))) | function pwin_onDeleteObject(){ // Save current node before we re-select. var sel = this.currentObject; // Check they want to go ahead. if (!confirm(getMsg(MSG_PREFS_OBJECT_DELETE, sel.parent.name))) return; // Select a new item BEFORE removing the current item, so the <tree> // doesn'... |
if (!confirm(getMsg(MSG_PREFS_OBJECT_RESET, sel.parent.name))) | if (!confirm(getMsg(MSG_PREFS_OBJECT_RESET, sel.parent.unicodeName))) | function pwin_onResetObject(){ // Save current node before we re-select. var sel = this.currentObject; // Check they want to go ahead. if (!confirm(getMsg(MSG_PREFS_OBJECT_RESET, sel.parent.name))) return; // Reset the prefs. sel.reset();} |
tt.showPopup(this.tooltipObject, tipobjBox.screenX, tipobjBox.screenY, "tooltip"); | tt.showPopup(this.tooltipObject, -1, -1, "tooltip", "bottomleft", "topleft"); | function pwin_setTooltipState(visible){ // Shortcut: if we're already in the right state, don't bother. if (this.tooltipShowing == visible) return; var tt = document.getElementById("czPrefTip"); // If we're trying to show it, and we have a reference object // (this.tooltipObject), we are o... |
ASSERT(result, "Node QI Failed"); | NS_ASSERT(result, "Node QI Failed"); | function QI_node(node, iid) { var result = null; try { result = node.QueryInterface(iid); } catch (e) { } ASSERT(result, "Node QI Failed"); return result;} |
if (window.XULBrowserWindow.userTyped.value) | if (gBrowser.userTypedValue !== null) | function QualifySearchTerm(){ // If the text in the URL bar is the same as the currently loaded // page's URL then treat this as an empty search term. This way // the user is taken to the search page where s/he can enter a term. if (window.XULBrowserWindow.userTyped.value) return document.getElementById("urlbar... |
!aIID.equals(Ci.nsIDOMEventListener) && | QueryInterface: function(aIID) { if (!aIID.equals(Ci.nsISupports) && !aIID.equals(Ci.nsIObserver) && !aIID.equals(Ci.nsISupportsWeakReference) && !aIID.equals(Ci.nsISessionStore)) { Components.returnCode = Cr.NS_ERROR_NO_INTERFACE; return null; } return this; } | |
!aIID.equals(Components.interfaces.calICalendarProvider) && | QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calICalendar)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; }, | |
!aIID.equals(Components.interfaces.calICalendarManager)) | !aIID.equals(Components.interfaces.calICalendarManager) && !aIID.equals(Components.interfaces.nsIObserver)) | QueryInterface: function (aIID) { if (aIID.equals(Components.interfaces.nsIClassInfo)) return calCalendarManagerClassInfo; if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calICalendarManager)) { throw Components.results.... |
QueryInterface: function(iid) { if (!iid.equals(Components.interfaces.nsIRequestObserver) && !iid.equals(Components.interfaces.nsIProgressEventSink) && !iid.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; } | QueryInterface: function(aIID) { if (!aIID.equals(Components.interfaces.nsIUpdateCheckListener) && !aIID.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; } | QueryInterface: function(iid) { if (!iid.equals(Components.interfaces.nsIRequestObserver) && !iid.equals(Components.interfaces.nsIProgressEventSink) && !iid.equals(Components.interfaces.nsISupports)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; } |
if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calIItemBase) && !aIID.equals(Components.interfaces.calITodo)) { throw Components.results.NS_ERROR_NO_INTERFACE; } | if (aIID.equals(Components.interfaces.calITodo)) return this; | QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calIItemBase) && !aIID.equals(Components.interfaces.calITodo)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; ... |
return this; | return this.__proto__.QueryInterface.apply(this, aIID); | QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calIItemBase) && !aIID.equals(Components.interfaces.calITodo)) { throw Components.results.NS_ERROR_NO_INTERFACE; } return this; ... |
dump ("calEvent QI failed to " + aIID + "\n"); | QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calIItemBase) && !aIID.equals(Components.interfaces.calIEvent)) { dump ("calEvent QI failed to " + aIID + "\n"); throw Components.resu... | |
QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calICalendar) && !aIID.equals(Components.interfaces.nsIStreamListener) && !aIID.equals(Components.interfaces.nsIStreamLoaderObserver) && !aIID.equals(Components.interfaces.nsIInterfaceRequestor)) ... | QueryInterface: function(iid) { if (iid.equals(CI.nsIWebDAVResource) || iid.equals(CI.nsISupports)) { return this; | QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calICalendar) && !aIID.equals(Components.interfaces.nsIStreamListener) && !aIID.equals(Components.interfaces.nsIStreamLoaderObserver) && !aII... |
return this; }, | throw Components.interfaces.NS_NO_INTERFACE; } | QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calICalendar) && !aIID.equals(Components.interfaces.nsIStreamListener) && !aIID.equals(Components.interfaces.nsIStreamLoaderObserver) && !aII... |
QueryInterface: function( iid ) { for each ( var iface in this.m_ifaces ) { if (iid.equals( iface )) return this; } throw Components.results.NS_ERROR_NO_INTERFACE; }, | QueryInterface: function( iid ) { if (Components.interfaces.nsIRunnable.equals(iid) || Components.interfaces.nsISupports.equals(iid)) return this; throw Components.results.NS_ERROR_NO_INTERFACE; }, | QueryInterface: function( iid ) { for each ( var iface in this.m_ifaces ) { if (iid.equals( iface )) return this; } throw Components.results.NS_ERROR_NO_INTERFACE; }, |
!aIID.equals(Components.interfaces.calICalendarProvider) && !aIID.equals(Components.interfaces.calICalendar) && !aIID.equals(Components.interfaces.nsIInterfaceRequestor)) { | !aIID.equals(nsIWebDavOperationListener)) { | QueryInterface: function (aIID) { if (!aIID.equals(Components.interfaces.nsISupports) && !aIID.equals(Components.interfaces.calICalendarProvider) && !aIID.equals(Components.interfaces.calICalendar) && !aIID.equals(Components.interfaces.nsIInterfaceRequestor)) { thr... |
aIID.equals(Ci.nsISupportsWeakReference)) | aIID.equals(Ci.nsIDOMEventListener)) | QueryInterface: function(aIID) { if (aIID.equals(Ci.nsISupports) || aIID.equals(Ci.nsIObserver) || aIID.equals(Ci.nsISupportsWeakReference)) return this; throw Cr.NS_ERROR_NO_INTERFACE; }, |
if (iid.equals(Ci.nsISupports) || iid.equals(Ci.txIEXSLTRegExFunctions)) return this; | if (iid.equals(Ci.nsISupports) || iid.equals(Ci.nsIFactory) || iid.equals(Ci.nsIClassInfo)) return this; | QueryInterface: function(iid) { if (iid.equals(Ci.nsISupports) || iid.equals(Ci.txIEXSLTRegExFunctions)) return this; if (iid.equals(Ci.nsIClassInfo)) return txEXSLTRegExModule.factory throw Components.results.NS_ERROR_NO_INTERFACE; }, |
if (iid.equals(Ci.nsIClassInfo)) return txEXSLTRegExModule.factory throw Components.results.NS_ERROR_NO_INTERFACE; }, | throw Components.results.NS_ERROR_NO_INTERFACE; }, | QueryInterface: function(iid) { if (iid.equals(Ci.nsISupports) || iid.equals(Ci.txIEXSLTRegExFunctions)) return this; if (iid.equals(Ci.nsIClassInfo)) return txEXSLTRegExModule.factory throw Components.results.NS_ERROR_NO_INTERFACE; }, |
ENSURE_ARG(aName && (aValue != null), "missing name or value for QueryParameter!"); ENSURE(!kInvalidWords.test(aValue), "Illegal value while creating a QueryParameter", Cr.NS_ERROR_NOT_IMPLEMENTED); | ENSURE_ARG(aName && (aValue != null), "missing name or value for QueryParameter!"); | function QueryParameter(aName, aValue) { ENSURE_ARG(aName && (aValue != null), "missing name or value for QueryParameter!"); ENSURE(!kInvalidWords.test(aValue), "Illegal value while creating a QueryParameter", Cr.NS_ERROR_NOT_IMPLEMENTED); this.name = aName; this.value = aValue;} |
ENSURE(!kIllegalWords.test(aValue), | ENSURE(!kInvalidWords.test(aValue), | function QueryParameter(aName, aValue) { ENSURE_ARG(aName && aValue, "missing name or value for QueryParameter!"); ENSURE(!kIllegalWords.test(aValue), "Illegal value while creating a QueryParameter", Cr.NS_ERROR_NOT_IMPLEMENTED); this.name = aName; this.value = aValue;} |
go_to(bugzilla+"show_bug.cgi?id="+escape(input)); | go_to(bugzilla+"show_bug.cgi?id="+encodeURIComponent(input)); | function QuickSearch (){ var input = document.f.id.value; //remove leading and trailing whitespace input = input.replace(/^[\s]+/,"").replace(/[\s]+$/,""); if (input == "") { //once this _is_ on http://bugzilla.mozilla.org, it should just return; go_to(bugzilla); } else if (input.ma... |
go_to(bugzilla+"buglist.cgi?bug_id="+escape(input) | go_to(bugzilla+"buglist.cgi?bug_id="+encodeURIComponent(input) | function QuickSearch (){ var input = document.f.id.value; //remove leading and trailing whitespace input = input.replace(/^[\s]+/,"").replace(/[\s]+$/,""); if (input == "") { //once this _is_ on http://bugzilla.mozilla.org, it should just return; go_to(bugzilla); } else if (input.ma... |
return this.ds.Change (n1, a, oldN2, n2); | this.ds.Change (n1, a, oldN2, n2); | function rdf_duassert (n1, a, n2){ var oldN2 = this.ds.GetTarget (n1, a, true); if (!oldN2) { dd ("** Unable to change " + n1.Value + " -[" + a.Value + "]->, " + "because old value was not found."); return; } return this.ds.Change (n1, a, oldN2, n2); } |
try { | try | read : function() { try { if(!this.fileInst || !this.fileChannel || !this.inputStream){ dump("Please open a valid file handle for reading . . .\n"); return null; } var fileExists = this.exists(this.fileInst.path); if(!fileExists) { dump("WARNING: \""+this.fileInst.pa... |
if(!this.fileInst || !this.fileChannel || !this.inputStream){ dump("Please open a valid file handle for reading . . .\n"); return null; | { if(!this.fileInst || !this.fileChannel || !this.inputStream) { dump("Please open a valid file handle for reading . . .\n"); return null; | read : function() { try { if(!this.fileInst || !this.fileChannel || !this.inputStream){ dump("Please open a valid file handle for reading . . .\n"); return null; } var fileExists = this.exists(this.fileInst.path); if(!fileExists) { dump("WARNING: \""+this.fileInst.pa... |
return; | return false; | read : function() { try { if(!this.fileInst || !this.fileChannel || !this.inputStream){ dump("Please open a valid file handle for reading . . .\n"); return null; } var fileExists = this.exists(this.fileInst.path); if(!fileExists) { dump("WARNING: \""+this.fileInst.pa... |
return false; | read : function() { try { if(!this.fileInst || !this.fileChannel || !this.inputStream){ dump("Please open a valid file handle for reading . . .\n"); return null; } var fileExists = this.exists(this.fileInst.path); if(!fileExists) { dump("WARNING: \""+this.fileInst.pa... | |
if (this._activeLanguages.childNodes.length > 0) | if (this._activeLanguages.childNodes.length > 0) { this._activeLanguages.ensureIndexIsVisible(selectedIndex); | readAcceptLanguages: function () { while (this._activeLanguages.hasChildNodes()) this._activeLanguages.removeChild(this._activeLanguages.firstChild); var selectedIndex = 0; var preference = document.getElementById("intl.accept_languages"); if (preference.value == "") return undefined; v... |
} | readAcceptLanguages: function () { while (this._activeLanguages.hasChildNodes()) this._activeLanguages.removeChild(this._activeLanguages.firstChild); var selectedIndex = 0; var preference = document.getElementById("intl.accept_languages"); if (preference.value == "") return undefined; v... | |
availLanguageDict.sort(); | availLanguageDict.sort( function (a, b) { if (a[0] < b[0]) return -1; if (a[0] > b[0]) return 1; return 0; }); | function ReadAvailableLanguages(){ availLanguageDict = new Array(); var visible = new String(); var str = new String(); var i =0; var acceptedBundleEnum = acceptedBundle.getSimpleEnumeration(); var curItem; var stringName; var stringNameProperty; while (acceptedBundleEnum.hasMoreElements()) { ... |
if (pref.value != null) | if (pref.value != "") | function readCacheLocationPref(){ var pref = document.getElementById("browser.cache.disk.parent_directory"); if (pref.value != null) return true; else return false;} |
var localFileInstance; var inputStream; var scriptableInputStream; var tmp; LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance( nsILocalFile ); LocalFileInstance.initWithPath( aFilePath ); | var localFileInstance = Components.classes[LOCALFILE_CTRID].createInstance( nsILocalFile ); localFileInstance.initWithPath( aFilePath ); | function readDataFromFile( aFilePath, charset ){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileInp... |
inputStream = Components.classes[FILEIN_CTRID].createInstance( nsIFileInputStream ); | var inputStream = Components.classes[FILEIN_CTRID].createInstance( nsIFileInputStream ); | function readDataFromFile( aFilePath, charset ){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileInp... |
inputStream.init( LocalFileInstance, MODE_RDONLY, 0444, tmp ); | var tmp; inputStream.init( localFileInstance, MODE_RDONLY, 0444, tmp ); | function readDataFromFile( aFilePath, charset ){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileInp... |
scriptableInputStream = Components.classes[SCRIPTSTREAM_CTRID].createInstance( nsIScriptableInputStream); | var scriptableInputStream = Components.classes[SCRIPTSTREAM_CTRID].createInstance( nsIScriptableInputStream); | function readDataFromFile( aFilePath, charset ){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileInp... |
aDataStream = scriptableInputStream.read( -1 ); | var aDataStream = scriptableInputStream.read( -1 ); | function readDataFromFile( aFilePath, charset ){ const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1"; const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1"; const nsILocalFile = Components.interfaces.nsILocalFile; const nsIFileInp... |
this.createCharsetMenus(document.getElementById("sendDefaultCharset-menupopup"), "NC:MaileditCharsetMenuRoot", document.getElementById('mailnews.send_default_charset').value); | readDefaultCharset: function() { if (!this.mCharsetMenuInitialized) { Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService) .notifyObservers(null, "charsetmenu-selected", "mailedit"); this.mCharsetMenuInitialized = t... | |
i=0; | readDir : function (dirPath) { if(!dirPath){ dump('Please enter a dir path as arg\n'); return null; } if(!this.exists(dirPath)){ dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return; } var file = new FilePath(dirPath); if(!file.isDirectory()){ dump("Sorry, "+dirPath+" is not a directory\n\n");... | |
listings[i] = files.getNext().QueryInterface(Components.interfaces.nsILocalFile).path; i++; | listings.push(files.getNext().QueryInterface(Components.interfaces.nsILocalFile).path); | readDir : function (dirPath) { if(!dirPath){ dump('Please enter a dir path as arg\n'); return null; } if(!this.exists(dirPath)){ dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return; } var file = new FilePath(dirPath); if(!file.isDirectory()){ dump("Sorry, "+dirPath+" is not a directory\n\n");... |
return eval(listings.toSource()); | return listings; | readDir : function (dirPath) { if(!dirPath){ dump('Please enter a dir path as arg\n'); return null; } if(!this.exists(dirPath)){ dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return; } var file = new FilePath(dirPath); if(!file.isDirectory()){ dump("Sorry, "+dirPath+" is not a directory\n\n");... |
if(!this.exists(dirPath)){ dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return; | if(!this.exists(dirPath)) { dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return false; | readDir : function (dirPath) { if(!dirPath){ dump('Please enter a dir path as arg\n'); return null; } if(!this.exists(dirPath)){ dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return; } var file = new FilePath(dirPath); if(!file.isDirectory()){ dump("Sorry, "+dirPath+" is not a directory\n\n");... |
if(!file.isDirectory()){ dump("Sorry, "+dirPath+" is not a directory\n\n"); return; | if(!file.isDirectory()) { dump("Sorry, "+dirPath+" is not a directory\n\n"); return false; | readDir : function (dirPath) { if(!dirPath){ dump('Please enter a dir path as arg\n'); return null; } if(!this.exists(dirPath)){ dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return; } var file = new FilePath(dirPath); if(!file.isDirectory()){ dump("Sorry, "+dirPath+" is not a directory\n\n");... |
while(files.hasMoreElements()){ | while(files.hasMoreElements()) | readDir : function (dirPath) { if(!dirPath){ dump('Please enter a dir path as arg\n'); return null; } if(!this.exists(dirPath)){ dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return; } var file = new FilePath(dirPath); if(!file.isDirectory()){ dump("Sorry, "+dirPath+" is not a directory\n\n");... |
} | readDir : function (dirPath) { if(!dirPath){ dump('Please enter a dir path as arg\n'); return null; } if(!this.exists(dirPath)){ dump("Sorry, directory "+dirPath+" doesn't exist\n\n"); return; } var file = new FilePath(dirPath); if(!file.isDirectory()){ dump("Sorry, "+dirPath+" is not a directory\n\n");... | |
return (pref.value == 0 || pref.value == 1); | return (pref.value == 1 || pref.value == 3); | readEnableImagesPref: function () { var pref = document.getElementById("permissions.default.image"); var enableRestricted = document.getElementById("enableRestricted"); enableRestricted.disabled = pref.value == 2; return (pref.value == 0 || pref.value == 1); }, |
return (pref.value == 1); | return (pref.value == 3); | readEnableRestrictedPref: function () { var pref = document.getElementById("permissions.default.image"); return (pref.value == 1); }, |
return; | return null; | function readFromClipboard() { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. var trans = Components ... |
var clipboard = Components .classes["component: .getService ( Components.interfaces.nsIClipboard ); var trans = Components .classes["component: .createInstance( Components.interfaces.nsITransferable ); if ( !clipboard || !trans ) | try { var clipboard = Components .classes["component: .getService ( Components.interfaces.nsIClipboard ); var trans = Components .classes["component: .createInstance( Components.interfaces.nsITransferable ); if ( !clipboard || !trans ) return null; trans.addDataFlavor( "text/unicode" ); clipboard.getData(trans, clip... | function readFromClipboard() { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. var trans = Components ... |
trans.addDataFlavor( "text/unicode" ); clipboard.getData(trans, clipboard.kSelectionClipboard); var data = new Object(); var dataLen = new Object(); trans.getTransferData("text/unicode", data, dataLen); var url = null; if (data) { data = data.value.QueryInterface(Components.interfaces .nsISupportsWString); url = data.... | function readFromClipboard() { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. var trans = Components ... | |
return url; | function readFromClipboard() { // Get clipboard. var clipboard = Components .classes["component://netscape/widget/clipboard"] .getService ( Components.interfaces.nsIClipboard ); // Create tranferable that will transfer the text. var trans = Components ... | |
else if ((ary = prefName.match(/munger.(.*)/)) && | else if ((ary = prefName.match(/munger\.(.*)/)) && | function readPref(prefName){ //if (prefName.indexOf("extensions.irc." == 0)) // prefName = prefName.substr(15); var ary; if (prefName in client.prefSpecs) { var varName = client.prefSpecs[prefName][0]; var defaultValue = client.prefSpecs[prefName][1]; var prefValue; ... |
dd ("readPref: UNKNOWN PREF ``" + prefName + "''"); | if (!(prefName.match(/viewList\..*/))) dd ("readPref: UNKNOWN PREF ``" + prefName + "''"); | function readPref(prefName){ //if (prefName.indexOf("extensions.irc." == 0)) // prefName = prefName.substr(15); var ary; if (prefName in client.prefSpecs) { var varName = client.prefSpecs[prefName][0]; var defaultValue = client.prefSpecs[prefName][1]; var prefValue; ... |
var container = console.scripts[script.fileName]; if (!container) | var container if (script.fileName in console.scripts) { container = console.scripts[script.fileName]; if (!("parentRecord" in container)) { console.scriptsView.childData.appendChild(container); } } else | function realizeScript(script){ var container = console.scripts[script.fileName]; if (!container) { container = console.scripts[script.fileName] = new ScriptContainerRecord (script.fileName); container.reserveChildren(); console.scriptsView.childData.appendChild(container); }... |
console.scriptsView.childData.appendChild(container); } else if (!container.parentRecord) { | function realizeScript(script){ var container = console.scripts[script.fileName]; if (!container) { container = console.scripts[script.fileName] = new ScriptContainerRecord (script.fileName); container.reserveChildren(); console.scriptsView.childData.appendChild(container); }... | |
const kName = RDF.GetResource(NC_NS+"Name"); | const kName = RDF.GetResource(gNC_NS+"Name"); | realSortByName: function (aSelection) { var theFolder; if (aSelection.length != 1) return; var selType = BookmarksUtils.resolveType (aSelection.item[0]); if (selType == "Folder" || selType == "Bookmark" || selType == "PersonalToolbarFolder" || selType == "Livemark") { theFolder = aSel... |
function receiveACPrefs(aAutoFill, aShowPopup, aShowSearch) | function receiveACPrefs(aAutoFill, aShowPopup, aShowSearch, aAutoType) | function receiveACPrefs(aAutoFill, aShowPopup, aShowSearch){ document.getElementById("browserUrlbarAutoFill").setAttribute("value", aAutoFill); document.getElementById("browserUrlbarShowPopup").setAttribute("value", aShowPopup); document.getElementById("browserUrlbarShowSearch").setAttribute("value", aShowSearch);} |
document.getElementById("browserUrlbarMatchOnlyTyped").setAttribute("value", aAutoType); | function receiveACPrefs(aAutoFill, aShowPopup, aShowSearch){ document.getElementById("browserUrlbarAutoFill").setAttribute("value", aAutoFill); document.getElementById("browserUrlbarShowPopup").setAttribute("value", aShowPopup); document.getElementById("browserUrlbarShowSearch").setAttribute("value", aShowSearch);} | |
gSpellChecker.InitSpellChecker(GetCurrentEditor()); | gSpellChecker.InitSpellChecker(GetCurrentEditor(), false); | function Recheck(){ //TODO: Should we bother to add a "Recheck" method to interface? try { var curLang = gSpellChecker.GetCurrentDictionary(); gSpellChecker.UninitSpellChecker(); gSpellChecker.InitSpellChecker(GetCurrentEditor()); gSpellChecker.SetCurrentDictionary(curLang); gMisspelledWord = gSpellChe... |
while ((inputField = awGetInputElement(i))) | var fieldValue; var recipient; while ((inputField = awGetInputElement(i))) { fieldValue = inputField.value; if (fieldValue == null) fieldValue = inputField.getAttribute("value"); if (fieldValue != "") | function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; ... |
var fieldValue = inputField.value; | recipientType = awGetPopupElement(i).selectedItem.getAttribute("value"); recipient = null; | function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; ... |
if (fieldValue == null) fieldValue = inputField.getAttribute("value"); | switch (recipientType) { case "addr_to" : case "addr_cc" : case "addr_bcc" : case "addr_reply" : try { recipient = gMimeHeaderParser.reformatUnquotedAddresses(fieldValue); } catch (ex) {recipient = fieldValue;} break; } | function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; ... |
if (fieldValue != "") | switch (recipientType) | function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; ... |
switch (awGetPopupElement(i).selectedItem.getAttribute("value")) { case "addr_to" : addrTo += to_Sep + fieldValue; to_Sep = ","; break; case "addr_cc" : addrCc += cc_Sep + fieldValue; cc_Sep = ","; break; case "addr_bcc" : addrBcc += bcc_Sep + fieldValue; bcc_Sep = ","; break; case... | case "addr_to" : addrTo += to_Sep + recipient; to_Sep = ","; break; case "addr_cc" : addrCc += cc_Sep + recipient; cc_Sep = ","; break; case "addr_bcc" : addrBcc += bcc_Sep + recipient; bcc_Sep = ","; break; case "addr_reply" : addrReply += reply_Se... | function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; ... |
i ++; | function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; ... | |
msgCompFields.to = addrTo; msgCompFields.cc = addrCc; msgCompFields.bcc = addrBcc; msgCompFields.replyTo = addrReply; msgCompFields.newsgroups = addrNg; msgCompFields.followupTo = addrFollow; msgCompFields.otherRandomHeaders = addrOther; | msgCompFields.to = addrTo; msgCompFields.cc = addrCc; msgCompFields.bcc = addrBcc; msgCompFields.replyTo = addrReply; msgCompFields.newsgroups = addrNg; msgCompFields.followupTo = addrFollow; msgCompFields.otherRandomHeaders = addrOther; gMimeHeaderParser = null; | function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; ... |
var fieldValue = inputField.input.value; | var fieldValue = inputField.value; | function Recipients2CompFields(msgCompFields){ if (msgCompFields) { var i = 1; var addrTo = ""; var addrCc = ""; var addrBcc = ""; var addrReply = ""; var addrNg = ""; var addrFollow = ""; var addrOther = ""; var to_Sep = ""; var cc_Sep = ""; var bcc_Sep = ""; var reply_Sep = ""; var ng_Sep = ""; var foll... |
if (this.dataSetMinMinVal > dsvals[0]) this.dataSetMinMinVal = dsvals[0]; if (this.dataSetMaxMaxVal < dsvals[1]) this.dataSetMaxMaxVal = dsvals[1]; | if (dsvals[0] != Infinity && dsvals[1] != -Infinity) { if (this.dataSetMinMinVal > dsvals[0]) this.dataSetMinMinVal = dsvals[0]; if (this.dataSetMaxMaxVal < dsvals[1]) this.dataSetMaxMaxVal = dsvals[1]; } } if (this.dataSetMinMinVal == Number.MAX_VALUE && this.dataSetMaxMaxVal == Number.MIN_VALUE) { this.dataSetMinMin... | recompute: function () { this.dataSetIndices = []; this.dataSetMinMaxes = []; this.hasRelative = false; var nonRelative = 0; for (var i = 0; i < this.dataSets.length; i++) { this.dataSetIndices.push (this.dataSets[i].indicesForTimeRange (this.startTime, this.endTime)); ... |
var reconnectFn = function(server) { delete server.parent.reconnectTimer; var ev = new CEvent("network", "do-connect", server.parent, "onDoConnect"); server.parent.eventPump.addEvent(ev); }; | function reconnectFn(network, eventProperties) { network.immediateConnect(eventProperties); }; | var reconnectFn = function(server) { delete server.parent.reconnectTimer; var ev = new CEvent("network", "do-connect", server.parent, "onDoConnect"); server.parent.eventPump.addEvent(ev); }; |
if ("value" in rec.parentRecord) cx.parentValue = rec.parentRecord.value; else cx.parentValue = null; cx.propertyName = rec.displayName; | function recordContextGetter (cx, rec, i) { if (rec instanceof ValueRecord) { if (i == 0) { cx.jsdValue = rec.value; if (rec.parentRecord == console.views.watches.childData) cx.index = rec.childIndex; } els... | |
aResults.push(this.ioService.getURLSpecFromFile(entry)); | aResults.push(this.fileHandler.getURLSpecFromFile(entry)); | recurseDir: function(aDir, aExtHash, aRecurse, aResults) { debug("("+aResults.length+") entering " + aDir.path + "\n"); var entries = aDir.directoryEntries; var entry, ext; while (entries.hasMoreElements()) { entry = XPCU.QI(entries.getNext(), "nsIFile"); if (aRecurse && entry.isDirectory()) ... |
gBMtxmgr.redoTransaction(); | BMSVC.transactionManager.redoTransaction(); | redoBookmarkTransaction: function () { gBMtxmgr.redoTransaction(); BookmarksUtils.flushDataSource(); }, |
BMSVC.transactionManager.redoTransaction(); | gBkmkTxnSvc.redo(); | redoBookmarkTransaction: function () { BMSVC.transactionManager.redoTransaction(); BookmarksUtils.refreshSearch(); BookmarksUtils.flushDataSource(); }, |
this.endUpdateBatch(); | redoTransaction: function () { for (var i=0; i<this.item.length; ++i) { if (this.isValid[i]) { this.RDFC.Init(this.BMDS, this.parent[i]); this.RDFC.InsertElementAt(this.item[i], this.index[i], true); } } }, | |
if ( resultsTree ) { var ref = resultsTree.getAttribute('ref'); resultsTree.setAttribute('ref', ref); } | if (resultsTree) { var ref = resultsTree.getAttribute("ref"); resultsTree.setAttribute("ref", ref); } | function RedrawResultsTree(){ if ( resultsTree ) { var ref = resultsTree.getAttribute('ref'); resultsTree.setAttribute('ref', ref); }} |
dump("Unable to fetch related links data on non-HTTP URL.\n"); | debug("Unable to fetch related links data on non-HTTP URL.\n"); | function refetchRelatedLinks(Handler, data){ var newSite = "" + data; // if we're looking at a translated page, get RL data for the true site if (newSite.indexOf("http://levis.alis.com:8080/") == 0) { var matchStr = "AlisTargetURI="; // this is expected to be the last argument var targetOffset = data.indexOf(matchStr... |
Handler.URL = theSite; | if (skipRelatedLinksDomain(newSite) != true) { Handler.URL = theSite; } | function refetchRelatedLinks(Handler, data){ var newSite = "" + data; // if we're looking at a translated page, get RL data for the true site if (newSite.indexOf("http://levis.alis.com:8080/") == 0) { var matchStr = "AlisTargetURI="; // this is expected to be the last argument var targetOffset = data.indexOf(matchStr... |
dump("Related Links: Current top-level: " + currentSite + " new top-level: " + newSite + "\n"); | debug("Related Links: Current top-level: " + currentSite + " new top-level: " + newSite + "\n"); | function refetchRelatedLinks(Handler, data){ var newSite = "" + data; // if we're looking at a translated page, get RL data for the true site if (newSite.indexOf("http://levis.alis.com:8080/") == 0) { var matchStr = "AlisTargetURI="; // this is expected to be the last argument var targetOffset = data.indexOf(matchStr... |
this.locked = true; | this.lock(); | refresh: function() { // Lock other changes to the item list. this.locked = true; // set to prevent writing after loading, without any changes this.loading = true; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(... |
this.mObserver.onEndBatch(); this.mObserver.onLoad(); this.locked = false; this.processQueue(); | this.unlock(); | refresh: function() { // Lock other changes to the item list. this.locked = true; // set to prevent writing after loading, without any changes this.loading = true; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(... |
this.mHooks.onBeforeGet(channel); | refresh: function() { // Lock other changes to the item list. this.locked = true; // set to prevent writing after loading, without any changes this.loading = true; var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(... | |
xalan_elems = xalan_xml.getElementsByTagName("test"); xalan_length = xalan_elems.length; | pop_last = 0; | function refresh_xalan() { while(target.childNodes.length>1) target.removeChild(target.lastChild); xalan_elems = xalan_xml.getElementsByTagName("test"); xalan_length = xalan_elems.length; populate_xalan(); return true;} |
var filter = this.calendar.ITEM_FILTER_TYPE_EVENT | this.calendar.ITEM_FILTER_COMPLETED_ALL | | var filter = this.calendar.ITEM_FILTER_COMPLETED_ALL | | function refreshCalendarQuery(){ var filter = this.calendar.ITEM_FILTER_TYPE_EVENT | this.calendar.ITEM_FILTER_COMPLETED_ALL | this.calendar.ITEM_FILTER_CLASS_OCCURRENCES; this.periods.forEach(function (p) { p.events = []; }); this.calendar.getItems(filter, 0, this.today.start, ... |
if (!this.filterType) this.filterType = 'all'; switch (this.filterType) { case 'all': filter |= this.calendar.ITEM_FILTER_TYPE_EVENT | this.calendar.ITEM_FILTER_TYPE_TODO; break; case 'events': filter |= this.calendar.ITEM_FILTER_TYPE_EVENT; break; case 'tasks': filter |= this.calendar.ITEM_FILTER_TYPE_TODO; break; } | function refreshCalendarQuery(){ var filter = this.calendar.ITEM_FILTER_TYPE_EVENT | this.calendar.ITEM_FILTER_COMPLETED_ALL | this.calendar.ITEM_FILTER_CLASS_OCCURRENCES; this.periods.forEach(function (p) { p.events = []; }); this.calendar.getItems(filter, 0, this.today.start, ... | |
newMenuItem.setAttribute('label', gMailViewList.getMailViewAt(index).mailViewName); | newMenuItem.setAttribute('label', gMailViewList.getMailViewAt(index).prettyName); | function refreshCustomMailViews(aDefaultSelectedIndex){ // for each mail view in the msg view list, add an entry in our combo box if (!gMailViewList) gMailViewList = Components.classes["@mozilla.org/messenger/mailviewlist;1"].getService(Components.interfaces.nsIMsgMailViewList); // remove any existing entries... ... |
if( eventArray === false ) { eventArray = getEventTable(); } | function refreshEventTree( eventArray ){ // get the old tree children item and remove it var tree = document.getElementById( UnifinderTreeName ); var elementsToRemove = document.getElementsByAttribute( "calendarevent", "true" ); for( var i = 0; i < elementsToRemove.length; i++ ) { elementsToRemove[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.