rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
[nick, e.params[3], e.meat]); | [nick, e.params[3], e.params[4]]); | function my_whoisreply (e){ var text = "egads!"; var nick = e.params[2]; switch (Number(e.code)) { case 311: text = getMsg("my_whoisreplyMsg", [nick, e.params[3], e.params[4], e.meat]); break; case 319: var ary = stringT... |
if (savedmstone == "ignore") return 0; | function needHomepageOverride(prefb) { var savedmstone = null; try { savedmstone = prefb.getCharPref("browser.startup.homepage_override.mstone"); } catch (e) {} var mstone = Components.classes["@mozilla.org/network/protocol;1?name=http"] .getService(nsIHttpProtocolHandler).misc; if (msto... | |
return "dummy"; | function negate_comparison_type(type) { switch(type) { case "substring": return "notsubstring"; case "anywords": return "nowords"; case "regexp": return "notregexp"; default: // e.g. "greaterthan" alert("Can't negate comparison ty... | |
function net_addsrv(host, port, password) | function net_addsrv(host, port, isSecure, password) | function net_addsrv(host, port, password){ this.serverList.push(new CIRCServer(this, host, port, password));} |
this.serverList.push(new CIRCServer(this, host, port, password)); | this.serverList.push(new CIRCServer(this, host, port, isSecure, password)); | function net_addsrv(host, port, password){ this.serverList.push(new CIRCServer(this, host, port, password));} |
var ev = new CEvent("network", "do-connect", this, "onDoConnect"); this.eventPump.addEvent(ev); | this.immediateConnect(); | function net_cancel(){ if (this.state == NET_ONLINE) { // Pull the plug on the current connection, or... this.quit(); } else if ((this.state == NET_CONNECTING) || (this.state == NET_WAITING)) { this.state = NET_CANCELLING; // ...try a reconnect (which will fail us). var... |
this.connecting = true; | function net_conenct(){ if ("primServ" in this && this.primServ.connection.isConnected) return; this.connecting = true; /* connection is considered "made" when serve * sends a 001 message (see server.on001) */ this.connectAttempt = 0; this.nextHost = 0; var ev = new CEv... | |
function net_connect() | function net_connect(requireSecurity) | function net_connect(){ if ("primServ" in this && this.primServ.isConnected) return; this.connectAttempt = 0; this.nextHost = 0; var ev = new CEvent("network", "do-connect", this, "onDoConnect"); this.eventPump.addEvent(ev);} |
ev.requireSecurity = requireSecurity; ev.password = null; | function net_connect(){ if ("primServ" in this && this.primServ.isConnected) return; this.connectAttempt = 0; this.nextHost = 0; var ev = new CEvent("network", "do-connect", this, "onDoConnect"); this.eventPump.addEvent(ev);} | |
this.connectAttempt = 0; | this.connectAttempt = 0; this.connectCandidate = 0; | function net_connect(requireSecurity){ if ("primServ" in this && this.primServ.isConnected) return; // We need to test for secure servers in the network object here, // because without them all connection attempts will fail anyway. if (requireSecurity && !this.hasSecureServer()) { // No sec... |
var ev = new CEvent("network", "do-connect", this, "onDoConnect"); ev.password = null; this.eventPump.addEvent(ev); | this.immediateConnect({"password": null}); | function net_connect(requireSecurity){ if ("primServ" in this && this.primServ.isConnected) return; // We need to test for secure servers in the network object here, // because without them all connection attempts will fail anyway. if (requireSecurity && !this.hasSecureServer()) { // No sec... |
e.set = "server"; e.destObject = this.primServ; | function net_connect (e){ this.primServ = e.server; this.primServ.login (this.INITIAL_NICK, this.INITIAL_NAME, this.INITIAL_DESC); if (this.INITIAL_CHANNEL) { this.primChan = this.primServ.addChannel (this.INITIAL_CHANNEL); this.primChan.join(); } e.set = "server"... | |
function net_connect (e) | function net_connect() | function net_connect (e){ this.primServ = e.server; this.primServ.login (this.INITIAL_NICK, this.INITIAL_NAME, this.INITIAL_DESC); return true;} |
this.primServ = e.server; this.primServ.login (this.INITIAL_NICK, this.INITIAL_NAME, this.INITIAL_DESC); return true; | if ("primServ" in this && this.primServ.connection.isConnected) return; | function net_connect (e){ this.primServ = e.server; this.primServ.login (this.INITIAL_NICK, this.INITIAL_NAME, this.INITIAL_DESC); return true;} |
this.connectAttempt = 0; this.nextHost = 0; var ev = new CEvent ("network", "do-connect", this, "onDoConnect"); this.eventPump.addEvent (ev); | function net_connect (e){ this.primServ = e.server; this.primServ.login (this.INITIAL_NICK, this.INITIAL_NAME, this.INITIAL_DESC); return true;} | |
var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.name); msgContainer.setAttribute ("msgtype", msgtype); | var msgRow = newInlineText ( {network: this.name, msgtype: msgtype}, "msg", "html:tr"); var msg = newInlineText ( {data: "[" + msgtype + "]", network: this.name, msgtype: msgtype}, "msg-type", "html:td"); | function net_display (message, msgtype){ var ary = message.split ("\n"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.name); msgContainer.setAttribute ("msgtype", msgtype); var msg = newInlineText ("[" + msgtype + "]", "msg-type"); msg.setAttribute ("network... |
var msg = newInlineText ("[" + msgtype + "]", "msg-type"); msg.setAttribute ("network", this.name); msg.setAttribute ("msgtype", msgtype); msgContainer.appendChild(msg); | msgRow.appendChild(msg); | function net_display (message, msgtype){ var ary = message.split ("\n"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.name); msgContainer.setAttribute ("msgtype", msgtype); var msg = newInlineText ("[" + msgtype + "]", "msg-type"); msg.setAttribute ("network... |
var msg = newInlineText (ary[l], "msg-data"); msg.setAttribute ("network", this.name); msg.setAttribute ("msgtype", msgtype); msgContainer.appendChild(msg); msgContainer.appendChild (document.createElement ("html:br")); | msgData.appendChild(newInlineText(ary[l])); msgData.appendChild (document.createElement ("html:br")); | function net_display (message, msgtype){ var ary = message.split ("\n"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.name); msgContainer.setAttribute ("msgtype", msgtype); var msg = newInlineText ("[" + msgtype + "]", "msg-type"); msg.setAttribute ("network... |
addHistory (this, msgContainer); | msgRow.appendChild (msgData); addHistory (this, msgRow); | function net_display (message, msgtype){ var ary = message.split ("\n"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.name); msgContainer.setAttribute ("msgtype", msgtype); var msg = newInlineText ("[" + msgtype + "]", "msg-type"); msg.setAttribute ("network... |
if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) | if ((this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) || ("cancelConnect" in this)) | function net_doconnect(e){ var c; if ("primServ" in this && this.primServ.isConnected) return true; var ev; if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) { ev = new CEvent ("network", "error", this, "onError"); ev.server = this; ev.debug = "Connection attempt... |
ev = new CEvent ("network", "startconnect", this, "onStartConnect"); ev.debug = "Connecting to " + this.serverList[host].name + ":" + this.serverList[host].port + ", attempt " + this.connectAttempt + " of " + this.MAX_CONNECT_ATTEMPTS + "..."; ev.host = this.serverList[host].hostname; ev.port = this.serverList[host].po... | if (this.serverList[host].isSecure || !e.requireSecurity) { ev = new CEvent ("network", "startconnect", this, "onStartConnect"); ev.debug = "Connecting to " + this.serverList[host].unicodeName + ":" + this.serverList[host].port + ", attempt " + this.connectAttempt + " of " + this.MAX_CONNECT_ATTEMPTS + "..."; ev.host =... | function net_doconnect(e){ var c; if ("primServ" in this && this.primServ.isConnected) return true; var ev; if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) { ev = new CEvent ("network", "error", this, "onError"); ev.server = this; ev.debug = "Connection attempt... |
var connected = false; if (!this.serverList[host].connect()) | if (!this.serverList[host].connect(null)) { ev = new CEvent ("network", "do-connect", this, "onDoConnect"); ev.requireSecurity = e.requireSecurity; this.eventPump.addEvent (ev); } } else | function net_doconnect(e){ var c; if ("primServ" in this && this.primServ.isConnected) return true; var ev; if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) { ev = new CEvent ("network", "error", this, "onError"); ev.server = this; ev.debug = "Connection attempt... |
ev.requireSecurity = e.requireSecurity; | function net_doconnect(e){ var c; if ("primServ" in this && this.primServ.isConnected) return true; var ev; if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) { ev = new CEvent ("network", "error", this, "onError"); ev.server = this; ev.debug = "Connection attempt... | |
this.connecting = true; | function net_doconnect(e){ var c; if ("primServ" in this && this.primServ.connection.isConnected) return true; var ev; if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) { ev = new CEvent ("network", "error", this, "onError"); ev.server = this; ev.debug = "Connection ... | |
if (this.connectAttempt++ >= this.MAX_CONNECT_ATTEMPTS) | this.connectAttempt++; this.connectCandidate++; if ((-1 != this.MAX_CONNECT_ATTEMPTS) && (this.connectAttempt > this.MAX_CONNECT_ATTEMPTS)) | function net_doconnect(e){ const NS_ERROR_OFFLINE = 0x804b0010; var c; // Clear the timer, if there is one. if ("reconnectTimer" in this) { clearTimeout(this.reconnectTimer); delete this.reconnectTimer; } var ev; if (this.state == NET_CANCELLING) { if ("primServ" in this ... |
ev = new CEvent ("network", "do-connect", this, "onDoConnect"); this.eventPump.addEvent (ev); | this.delayedConnect(); | function net_doconnect(e){ const NS_ERROR_OFFLINE = 0x804b0010; var c; // Clear the timer, if there is one. if ("reconnectTimer" in this) { clearTimeout(this.reconnectTimer); delete this.reconnectTimer; } var ev; if (this.state == NET_CANCELLING) { if ("primServ" in this ... |
ev = new CEvent ("network", "do-connect", this, "onDoConnect"); this.eventPump.addEvent (ev); | this.immediateConnect(); | function net_doconnect(e){ const NS_ERROR_OFFLINE = 0x804b0010; var c; // Clear the timer, if there is one. if ("reconnectTimer" in this) { clearTimeout(this.reconnectTimer); delete this.reconnectTimer; } var ev; if (this.state == NET_CANCELLING) { if ("primServ" in this ... |
this.serverList[0].name == this.name && | this.serverList[0].unicodeName == this.unicodeName && | function net_geturl(target){ if (this.serverList.length == 1 && this.serverList[0].name == this.name && this.serverList[0].port != 6667) { return this.serverList[0].getURL(target); } if (!target) target = ""; return "irc://" + ecmaEscape(this.name) + "/" + target;} |
return "irc: | var isSecure = true; for (var s in this.serverList) { if (!this.serverList[s].isSecure) { isSecure = false; break; } } if (isSecure) return "ircs: } return "irc: | function net_geturl(target){ if (this.serverList.length == 1 && this.serverList[0].name == this.name && this.serverList[0].port != 6667) { return this.serverList[0].getURL(target); } if (!target) target = ""; return "irc://" + ecmaEscape(this.name) + "/" + target;} |
this.stayingPower = false; | function net_quit (reason){ this.stayingPower = false; if (this.isConnected()) this.primServ.logout (reason);} | |
gc(); | function neurodna(limit) { var prepare="<go>"; for(var i=0;i<limit;i++) { prepare += "<a>neurodna</a>"; } prepare+="</go>"; var da1=new Date(); replace(prepare); var da2=new Date(); data.X.push(limit); data.Y.push(da2-da1);} | |
SetCardValues(cardproperty, frames["editcard"].document); | SetCardValues(cardproperty, document); | function NewCardOKButton(){ var cardproperty = Components.classes["component://netscape/addressbook/cardproperty"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); dump("cardproperty = " + cardproperty + "\n"); if ( cardproperty ) { SetCardValues(cardproperty, frames["edit... |
SetCardValues(editCard.card, document); | SetCardValues(gEditCard.card, document); | function NewCardOKButton(){ if (gOkCallback) { SetCardValues(editCard.card, document); var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); gOkCallback(addressbook.abCardToEscapedVCard(editCard.card)); return true; // close the window }... |
gOkCallback(addressbook.abCardToEscapedVCard(editCard.card)); | gOkCallback(addressbook.abCardToEscapedVCard(gEditCard.card)); | function NewCardOKButton(){ if (gOkCallback) { SetCardValues(editCard.card, document); var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); gOkCallback(addressbook.abCardToEscapedVCard(editCard.card)); return true; // close the window }... |
if ( editCard.card ) | if (gEditCard.card) | function NewCardOKButton(){ if (gOkCallback) { SetCardValues(editCard.card, document); var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); gOkCallback(addressbook.abCardToEscapedVCard(editCard.card)); return true; // close the window }... |
var addedCard = directory.addCard(editCard.card); editCard.card = addedCard; | var addedCard = directory.addCard(gEditCard.card); gEditCard.card = addedCard; | function NewCardOKButton(){ if (gOkCallback) { SetCardValues(editCard.card, document); var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); gOkCallback(addressbook.abCardToEscapedVCard(editCard.card)); return true; // close the window }... |
var t = new CalDateTime(); | var t = createDateTime(); | function newDateTime(aNativeTime, aTimezone) { var t = new CalDateTime(); t.nativeTime = aNativeTime; if (aTimezone && aTimezone != "floating") { t = t.getInTimezone(aTimezone); } else { t.timezone = "floating"; } return t;} |
Components.classes[nsIPromptService_CONTRACTID].getService(Components.interfaces.nsIPromptService); | Components.classes[NS_PROMPTSERVICE_CONTRACTID].getService(Components.interfaces.nsIPromptService); | function newDir() { var file; var promptService = Components.classes[nsIPromptService_CONTRACTID].getService(Components.interfaces.nsIPromptService); var dialogTitle = gFilePickerBundle.getString("promptNewDirTitle"); var dialogMsg = gFilePickerBundle.getString("promptNewDirMessage"); var ret = promptServ... |
var MinutesToAddOn = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultlength", gCalendarBundle.getString("defaultEventLength" ) ); | var pb2 = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); var MinutesToAddOn = pb2.getIntPref("calendar.event.defaultlength"); | function newEvent(startDate, endDate, allDay){ // create a new event to be edited and added var calendarEvent = createEvent(); if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn = getIntPre... |
editNewEvent( calendarEvent, calendar ); | createEventWithDialog(calendar, null, null, null, calendarEvent); | function newEvent(startDate, endDate, allDay){ // create a new event to be edited and added var calendarEvent = createEvent(); if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn = getIntPre... |
var server = getSelectedCalendarPathOrNull(); | var calendar = getSelectedCalendarOrNull(); | function newEvent(startDate, endDate, allDay){ // create a new event to be edited and added var calendarEvent = createEvent(); if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn = getIntPre... |
editNewEvent( calendarEvent, server ); | editNewEvent( calendarEvent, calendar ); | function newEvent(startDate, endDate, allDay){ // create a new event to be edited and added var calendarEvent = createEvent(); if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn = getIntPre... |
/* | function newEvent( startDate, endDate, allDay ){ // create a new event to be edited and added var calendarEvent = createEvent(); /* if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn... | |
var endDateTime = startDate.clone(); endDateTime.minute += MinutesToAddOn; endDateTime.normalize(); | var endDate = new Date(startDate); endDate.setMinutes(endDate.getMinutes() + MinutesToAddOn); | function newEvent( startDate, endDate, allDay ){ // create a new event to be edited and added var calendarEvent = createEvent(); /* if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn... |
*/ | function newEvent( startDate, endDate, allDay ){ // create a new event to be edited and added var calendarEvent = createEvent(); /* if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn... | |
if( !startDate ) startDate = gCalendarWindow.currentView.getNewEventDate(); | function newEvent( startDate, endDate ){ // create a new event to be edited and added var calendarEvent = createEvent(); calendarEvent.start.setTime( startDate ); if( !endDate ) { var MinutesToAddOn = getIntPref(gCalendarWindow.calendarPreferences.calendarPref, "event.defaultlength", gCalendarBundle... | |
calendarEvent.alarmTime = createDateTime(); calendarEvent.setProperty("alarmUnits", alarmsBranch.getCharPref("eventalarmunit")); calendarEvent.setProperty("alarmLength", alarmsBranch.getIntPref("eventalarmlen")); calendarEvent.setProperty("alarmRelation", "START"); | var alarmOffset = Components.classes["@mozilla.org/calendar/duration;1"] .createInstance(Components.interfaces.calIDuration); try { var units = alarmsBranch.getCharPref("eventalarmunit"); alarmOffset[units] = alarmsBranch.getIntPref("eventalarmlen"); } catch(ex) { alarmOffset.minutes = 15; } calendarEvent.alarmOffset =... | function newEvent(startDate, endDate, allDay){ // create a new event to be edited and added var calendarEvent = createEvent(); if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn = getIntPre... |
if (uri && (uri != "") && name && (name != "")) { var selectedFolderResource = RDF.GetResource(uri); var compositeDataSource = GetCompositeDataSource("NewFolder"); | if (uri && (uri != "") && name && (name != "")) { var selectedFolderResource = RDF.GetResource(uri); var compositeDataSource = GetCompositeDataSource("NewFolder"); var folderArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); var nameArray = Components.cl... | function NewFolder(name,uri){ //dump("uri,name = " + uri + "," + name + "\n"); if (uri && (uri != "") && name && (name != "")) { var selectedFolderResource = RDF.GetResource(uri); //dump("selectedFolder = " + uri + "\n"); var compositeDataSource = GetCompositeDataSource("NewFolder"); var folderArray = Components... |
var folderArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); var nameArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); | folderArray.AppendElement(selectedFolderResource); | function NewFolder(name,uri){ //dump("uri,name = " + uri + "," + name + "\n"); if (uri && (uri != "") && name && (name != "")) { var selectedFolderResource = RDF.GetResource(uri); //dump("selectedFolder = " + uri + "\n"); var compositeDataSource = GetCompositeDataSource("NewFolder"); var folderArray = Components... |
folderArray.AppendElement(selectedFolderResource); var nameLiteral = RDF.GetLiteral(name); nameArray.AppendElement(nameLiteral); DoRDFCommand(compositeDataSource, "http: } else { dump("no name or nothing selected\n"); } | var nameLiteral = RDF.GetLiteral(name); nameArray.AppendElement(nameLiteral); DoRDFCommand(compositeDataSource, "http: } else { dump("no name or nothing selected\n"); } | function NewFolder(name,uri){ //dump("uri,name = " + uri + "," + name + "\n"); if (uri && (uri != "") && name && (name != "")) { var selectedFolderResource = RDF.GetResource(uri); //dump("selectedFolder = " + uri + "\n"); var compositeDataSource = GetCompositeDataSource("NewFolder"); var folderArray = Components... |
function newInlineText (data, className) | function newInlineText (data, className, tagName) | function newInlineText (data, className){ var a = document.createElement ("html:a"); if (data) a.appendChild (document.createTextNode (data)); if (typeof className != "undefined") a.setAttribute ("class", className); return a; } |
var a = document.createElement ("html:a"); | if (typeof tagName == "undefined") tagName = "html:a"; var a = document.createElement (tagName); a.setAttribute ("class", className); | function newInlineText (data, className){ var a = document.createElement ("html:a"); if (data) a.appendChild (document.createTextNode (data)); if (typeof className != "undefined") a.setAttribute ("class", className); return a; } |
if (data) a.appendChild (document.createTextNode (data)); if (typeof className != "undefined") a.setAttribute ("class", className); | switch (typeof data) { case "string": a.appendChild (document.createTextNode (data)); break; case "object": for (var p in data) if (p != "data") a.setAttribute (p, data[p]); else a.appendChild (document.createTextNode (data[p])); break; case "undefined": break; default: dd ("** INVALID TYPE ('" + typeof data + "') p... | function newInlineText (data, className){ var a = document.createElement ("html:a"); if (data) a.appendChild (document.createTextNode (data)); if (typeof className != "undefined") a.setAttribute ("class", className); return a; } |
addressList = addressList + (i > 0 ? ",":"") + addresses.GetElementAt(i).QueryInterface(Components.interfaces.nsISupportsCString).data; | addressList = addressList + (i > 0 ? ",":"") + addresses.QueryElementAt(i,Components.interfaces.nsISupportsString).data; | function NewMessageToSelectedAddresses(type, format, identity) { var abSidebarPanel = document.commandDispatcher.focusedWindow; var abResultsTree = abSidebarPanel.document.getElementById("abResultsTree"); var abResultsBoxObject = abResultsTree.treeBoxObject; var abView = abResultsBoxObject.view; abView = abView.Qu... |
if (!jsenv.HAS_XPCOM) return; | function newObject(progID, iface){ var obj = Components.classes[progID].createInstance(); var rv; switch (typeof iface) { case "string": rv = obj.QueryInterface(Components.interfaces[iface]); break; case "object": rv = obj.QueryInterface[iface]; brea... | |
editNewToDo(calendarToDo, calendar); | createTodoWithDialog(calendar, null, null, calendarToDo); | function newToDo ( startDate, dueDate ) { var calendarToDo = createToDo(); // created todo has no start or due date unless user wants one if (startDate) calendarToDo.entryDate = jsDateToDateTime(startDate); if (dueDate) calendarToDo.dueDate = jsDateToDateTime(startDate); var prefService ... |
var server = getSelectedCalendarPathOrNull(); | var calendar = getSelectedCalendarOrNull(); | function newToDo ( startDate, dueDate ) { var calendarToDo = createToDo(); // created todo has no start or due date unless user wants one if (startDate) calendarToDo.entryTime.jsDate = startDate; if (dueDate) calendarToDo.dueDate.jsDate = dueDate; var server = getSelectedCalendarPathOrN... |
editNewToDo(calendarToDo, server); | editNewToDo(calendarToDo, calendar); | function newToDo ( startDate, dueDate ) { var calendarToDo = createToDo(); // created todo has no start or due date unless user wants one if (startDate) calendarToDo.entryTime.jsDate = startDate; if (dueDate) calendarToDo.dueDate.jsDate = dueDate; var server = getSelectedCalendarPathOrN... |
calendarToDo.alarmTime = createDateTime(); | function newToDo ( startDate, dueDate ) { var calendarToDo = createToDo(); // created todo has no start or due date unless user wants one if (startDate) calendarToDo.entryDate = jsDateToDateTime(startDate); if (dueDate) calendarToDo.dueDate = jsDateToDateTime(startDate); var prefService ... | |
calendarToDo.setProperty("alarmUnits", alarmsBranch.getCharPref("todoalarmunit")); calendarToDo.setProperty("alarmLength", alarmsBranch.getIntPref("todoalarmlen")); calendarToDo.setProperty("alarmRelation", "START"); | var alarmOffset = Components.classes["@mozilla.org/calendar/duration;1"] .createInstance(Components.interfaces.calIDuration); try { var units = alarmsBranch.getCharPref("todoalarmunit"); alarmOffset[units] = alarmsBranch.getIntPref("todoalarmlen"); } catch(ex) { alarmOffset.minutes = 15; } calendarToDo.alarmOffset = al... | function newToDo ( startDate, dueDate ) { var calendarToDo = createToDo(); // created todo has no start or due date unless user wants one if (startDate) calendarToDo.entryDate = jsDateToDateTime(startDate); if (dueDate) calendarToDo.dueDate = jsDateToDateTime(startDate); var prefService ... |
createTodoWithDialog(); | createTodoWithDialog(ltnSelectedCalendar()); | function newTodoItem(event){ createTodoWithDialog();} |
window.openDialog("chrome: | var handlerOverride = new HandlerOverride(); window.openDialog("chrome: | function newType(){ window.openDialog("chrome://communicator/content/pref/pref-applications-new.xul", "appEdit", "chrome,modal=yes,resizable=no"); if (gNewTypeRV) { //gList.builder.rebuild(); gList.setAttribute("ref", "urn:mimetypes"); gNewTypeRV = null; }} |
selectApplication(); | function newType(){ window.openDialog("chrome://communicator/content/pref/pref-applications-new.xul", "appEdit", "chrome,modal=yes,resizable=no"); if (gNewTypeRV) { //gTree.builder.rebuild(); gTree.setAttribute("ref", "urn:mimetypes"); selectApplication(); gNewTypeRV = null; }} | |
misspelledWord = editorShell.GetNextMisspelledWord(); | misspelledWord = spellChecker.GetNextMisspelledWord(); | function NextWord(){ misspelledWord = editorShell.GetNextMisspelledWord(); dialog.wordInput.value = misspelledWord; if (misspelledWord == "") { dump("FINISHED SPELL CHECKING\n"); FillSuggestedList("(no suggestions)"); } else { FillSuggestedList(); }} |
return java.lang.System.getProperty("line.separator"); | try { return java.lang.System.getProperty("line.separator"); } catch (e) { return "\n"; } | function NL() { return java.lang.System.getProperty("line.separator");} |
gSanitizeListener = new SanitizeListener(); | function nonBrowserWindowDelayedStartup(){ // loads the services initServices(); initBMService(); // init global pref service gPrefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);} | |
'viewHistorySidebar', 'Browser:AddBookmarkAs', 'Tools:Search', 'View:PageInfo', 'Tasks:InspectPage']; | 'viewHistorySidebar', 'Browser:AddBookmarkAs', 'View:PageInfo', 'Tasks:InspectPage']; | function nonBrowserWindowStartup(){ // Disable inappropriate commands / submenus var disabledItems = ['cmd_newNavigatorTab', 'Browser:SavePage', 'Browser:SendLink', 'cmd_pageSetup', 'cmd_print', 'cmd_find', 'cmd_findAgain', 'viewToolbarsMenu', 'cmd_toggleTaskbar', 'viewSide... |
var disabledItems = ['cmd_newNavigatorTab', 'cmd_close', 'Browser:SavePage', 'Browser:SendLink', | var disabledItems = ['cmd_newNavigatorTab', 'Browser:SavePage', 'Browser:SendLink', | function nonBrowserWindowStartup(){ // Disable inappropriate commands / submenus var disabledItems = ['cmd_newNavigatorTab', 'cmd_close', 'Browser:SavePage', 'Browser:SendLink', 'cmd_pageSetup', 'cmd_print', 'cmd_find', 'cmd_findAgain', 'viewToolbarsMenu', 'cmd_toggleTaskba... |
element = document.getElementById("minimizeWindow"); element.setAttribute("disabled", "true"); element = document.getElementById("zoomWindow"); element.setAttribute("disabled", "true"); | var hiddenWindowDisabledItems = ['cmd_close', 'minimizeWindow', 'zoomWindow']; for (var id in hiddenWindowDisabledItems) { element = document.getElementById(hiddenWindowDisabledItems[id]); if (element) element.setAttribute("disabled", "true"); } | function nonBrowserWindowStartup(){ // Disable inappropriate commands / submenus var disabledItems = ['cmd_newNavigatorTab', 'cmd_close', 'Browser:SavePage', 'Browser:SendLink', 'cmd_pageSetup', 'cmd_print', 'cmd_find', 'cmd_findAgain', 'viewToolbarsMenu', 'cmd_toggleTaskba... |
createInstance(Components.interfaces.nsIIOService); | getService(Components.interfaces.nsIIOService); | normalizeHost: function (aUrl) { var ioService = Components.classes["@mozilla.org/network/io-service;1"]. createInstance(Components.interfaces.nsIIOService); var normalizedUrl = ioService.newURI(aUrl, null, null); normalizedUrl.host = normalizedUrl.host.toLowerCase(); return normalized... |
normalizedUrl = Components.classes["@mozilla.org/network/standard-url;1"]. createInstance(Components.interfaces.nsIURI); normalizedUrl.spec = aUrl; | var ioService = Components.classes["@mozilla.org/network/io-service;1"]. createInstance(Components.interfaces.nsIIOService); var normalizedUrl = ioService.newURI(aUrl, null, null); | normalizeHost: function (aUrl) { normalizedUrl = Components.classes["@mozilla.org/network/standard-url;1"]. createInstance(Components.interfaces.nsIURI); normalizedUrl.spec = aUrl; normalizedUrl.host = normalizedUrl.host.toLowerCase(); return normalizedUrl.spec; } |
{ this._win.focus(); } | { window.close(); } | notify: function (aTimer) { this._win.focus(); } |
_timer = null; | this._timer = null; | notify: function (aTimer) { if (!this._blurred) this.mDialog.document.documentElement.getButton('accept').disabled = false; _timer = null; }, |
var tb = getTabForObject (source, true); | var tb = dispatch("create-tab-for-view", { view: source }); | function notifyAttention (source){ if (typeof source != "object") source = client.viewsArray[source].source; if (client.currentObject != source) { var tb = getTabForObject (source, true); var vk = Number(tb.getAttribute("viewKey")); tb.setAttribute ("state", "attention"); ... |
window.InsertCharWindow = null; | NotifyDocumentCreated: function() { // Call EditorSetDefaultPrefs first so it gets the default author before initing toolbars EditorSetDefaultPrefs(); EditorInitToolbars(); BuildRecentMenu(true); // Build the recent files menu and save to prefs window._content.focus(); // udpate menu items no... | |
gEditor = editorShell.editor; DoAllQueryInterfaceOnEditor(); | NotifyDocumentCreated: function() { addEditorClickEventListener(); }, | |
gEditor.QueryInterface(Components.interfaces.nsIEditorMailSupport); } catch(e) {} | gEditor.addOverrideStyleSheet(kBaseEditorStyleSheet); gEditor.addOverrideStyleSheet(kNormalStyleSheet); } catch (e) {} | NotifyDocumentCreated: function() { gEditor = editorShell.editor; // do all of our QI'ing here so we don't need to do it elsewhere DoAllQueryInterfaceOnEditor(); try { gEditor.QueryInterface(Components.interfaces.nsIEditorMailSupport); } catch(e) {} // XXX Temporary: This should be set during ... |
addEditorClickEventListener(); | window.updateCommands("create"); | NotifyDocumentCreated: function() { gEditor = editorShell.editor; // do all of our QI'ing here so we don't need to do it elsewhere DoAllQueryInterfaceOnEditor(); try { gEditor.QueryInterface(Components.interfaces.nsIEditorMailSupport); } catch(e) {} // XXX Temporary: This should be set during ... |
try { gEditor.addOverrideStyleSheet(kBaseEditorStyleSheet); } catch (e) {} | if (IsWebComposer()) { if (gComposerWindowControllerID != -1) { try { var controller = window.controllers.getControllerById(gComposerWindowControllerID); controller.SetCommandRefCon(gEditor.QueryInterface(Components.interfaces.nsISupports)); } catch (e) {} } EditorSetDefaultPrefsAndDoctype(); EditorInitToolbars(); ... | NotifyDocumentCreated: function() { gEditor = editorShell.editor; // do all of our QI'ing here so we don't need to do it elsewhere DoAllQueryInterfaceOnEditor(); try { gEditor.QueryInterface(Components.interfaces.nsIEditorMailSupport); } catch(e) {} // XXX Temporary: This should be set during ... |
EditorSetDefaultPrefsAndDoctype(); EditorInitToolbars(); BuildRecentMenu(true); gContentWindow = window._content; gContentWindow.focus(); window.updateCommands("create"); if (!("InsertCharWindow" in window)) window.InsertCharWindow = null; SetSaveAndPublishUI(GetDocumentUrl()); | addEditorClickEventListener(); | NotifyDocumentCreated: function() { // Call EditorSetDefaultPrefsAndDoctype first so it gets the default author before initing toolbars EditorSetDefaultPrefsAndDoctype(); EditorInitToolbars(); BuildRecentMenu(true); // Build the recent files menu and save to prefs // Just for convenience gCont... |
NotifyDocumentStateChanged:function() | NotifyDocumentStateChanged:function( isNowDirty ) | NotifyDocumentStateChanged:function() { } |
if (isNowDirty) docWasModified = true; window.updateCommands("create"); window.updateCommands("save"); | NotifyDocumentStateChanged:function() { } | |
NotifyDocumentStateChanged:function( isNowDirty ) | NotifyDocumentStateChanged:function() | NotifyDocumentStateChanged:function( isNowDirty ) { /* Notify our dirty detector so this window won't be closed if another document is opened */ if (isNowDirty) docWasModified = true; // hack! Should not need this updateCommands, but there is some controller // bug that this works around. ?? ... |
if (isNowDirty) docWasModified = true; window.updateCommands("create"); window.updateCommands("save"); | NotifyDocumentStateChanged:function( isNowDirty ) { /* Notify our dirty detector so this window won't be closed if another document is opened */ if (isNowDirty) docWasModified = true; // hack! Should not need this updateCommands, but there is some controller // bug that this works around. ?? ... | |
var str = this.logError( err ); this.notifyObservers( "onError", [err instanceof Error ? -1 : err, str] ); | var msg = this.logError(err); this.notifyObservers( "onError", err instanceof Components.interfaces.nsIException ? [err.result, err.message] : [-1, msg] ); | notifyError: function( err ) { debugger; var str = this.logError( err ); this.notifyObservers( "onError", [err instanceof Error ? -1 : err, str] ); }, |
return this.handleURI(this.mLinkedURI, this.mFlag = nsIPolicyReference.IS_LINKED_URI); | this.handleURI(this.mLinkedURI, this.mFlag = nsIPolicyReference.IS_LINKED_URI); return; | notifyPolicyLocation : function (aLocation, aError) { if (aError == nsIPolicyReference.POLICY_LOAD_SUCCESS) { if (!this.mPolicyURL) { this.mPolicyURL = gIOService.newURI(aLocation, null, null).QueryInterface(nsIURL); } else { this.mPolicyURL.spec = aLocation; } // We have l... |
if (gOnSaveListeners.length) { editCard.card.editCardToDatabase(editCard.abURI); } | function NotifySaveListeners(){ for ( var i = 0; i < gOnSaveListeners.length; i++ ) gOnSaveListeners[i]();} | |
editCard.card.editCardToDatabase(editCard.abURI); | gEditCard.card.editCardToDatabase(gEditCard.abURI); | function NotifySaveListeners(){ for ( var i = 0; i < gOnSaveListeners.length; i++ ) gOnSaveListeners[i](); if (gOnSaveListeners.length) { // the save listeners might have tweaked the card // in which case we need to commit it. editCard.card.editCardToDatabase(editCard.abURI); }} |
|| commandID == "cmd_findPrev" | function noUIStateUpdateNeeded(commandID){ if (commandID == "cmd_removeNamedAnchors" || commandID == "cmd_removeLinks" || commandID == "cmd_advancedProperties" || commandID == "cmd_spelling" || commandID == "cmd_validate" || commandID == "cmd_findNext" || commandID == "cmd_find" || commandID == "cmd_prev... | |
if (environment.exists(NS_ASSERT_ENVIRONMENT_VARIABLE_NAME) && !parseInt(environment.get(NS_ASSERT_ENVIRONMENT_VARIABLE_NAME))) | if (environment.exists("XUL_ASSERT_PROMPT") && !parseInt(environment.get("XUL_ASSERT_PROMPT"))) | function NS_ASSERT(condition, message) { if (condition) return; var caller = arguments.callee.caller; var assertionText = "ASSERT: " + message + "\n"; dump(assertionText); var stackText = ""; if (gTraceOnAssert) { stackText = "Stack Trace: \n"; var count = 0; while (caller) { stackText += count++... |
this.init(); | function nsBrowserStatusHandler(){ this.init();} | |
try { var pbi = pref.QueryInterface(Components.interfaces.nsIPrefBranchInternal); pbi.addObserver(this.domain, this, false); } catch(ex) { dump("Failed to observe prefs: " + ex + "\n"); } | this.startup(); | function nsButtonPrefListener(){ try { var pbi = pref.QueryInterface(Components.interfaces.nsIPrefBranchInternal); pbi.addObserver(this.domain, this, false); } catch(ex) { dump("Failed to observe prefs: " + ex + "\n"); }} |
this.popupURL = null; | function nsContextMenu( xulMenu ) { this.target = null; this.menu = null; this.onTextInput = false; this.onImage = false; this.onLink = false; this.onMailtoLink = false; this.onSaveableLink = false; this.onMetaDataItem = false; this.onMathML = false... | |
this.target = null; this.menu = null; this.onTextInput = false; this.onImage = false; this.onLink = false; | this.target = null; this.menu = null; this.onTextInput = false; this.onImage = false; this.onLink = false; this.onMailtoLink = false; | function nsContextMenu( xulMenu ) { this.target = null; this.menu = null; this.onTextInput = false; this.onImage = false; this.onLink = false; this.onSaveableLink = false; this.link = false; this.inFrame = false; this.hasBGImage = false; this.inDirList = false; ... |
this.possibleSpellChecking = false; | function nsContextMenu( xulMenu ) { this.target = null; this.menu = null; this.onTextInput = false; this.onKeywordField = false; this.onImage = false; this.onLoadedImage = false; this.onLink = false; this.onMailtoLink = false; thi... | |
const stdURLContractID = "@mozilla.org/network/standard-url;1"; const stdURLIID = Components.interfaces.nsIURI; this.uri = Components.classes[stdURLContractID].createInstance(stdURLIID); this.uri.spec = aURL; | this.uri = makeURL(aURL); | function nsHeaderSniffer(aURL, aCallback, aData){ this.mCallback = aCallback; this.mData = aData; const stdURLContractID = "@mozilla.org/network/standard-url;1"; const stdURLIID = Components.interfaces.nsIURI; this.uri = Components.classes[stdURLContractID].createInstance(stdURLIID); this.uri.spec = aURL; th... |
try { var referrer = getReferrer(document); this.linkChecker.baseChannel.QueryInterface(Components.interfaces.nsIHttpChannel).referrer = referrer; } catch (ex) { } | function nsHeaderSniffer(aURL, aCallback, aData){ this.mCallback = aCallback; this.mData = aData; this.uri = makeURL(aURL); this.linkChecker = Components.classes["@mozilla.org/network/urichecker;1"] .createInstance(Components.interfaces.nsIURIChecker); this.linkChecker.init(this.uri); var flags; if (aData... | |
this.givenDefaultApp = false; | function nsHelperAppDialog() { // Initialize data properties. this.mLauncher = null; this.mContext = null; this.mSourcePath = null; this.choseApp = false; this.chosenApp = null; this.strings = new Array; this.elements = new Array;} | |
var dirType; | function nsLDAPPrefsService() { var arrayOfDirectories; var j = 0; try { gPrefInt = Components.classes["@mozilla.org/preferences-service;1"]; gPrefInt = gPrefInt.getService(nsIPrefBranch); } catch (ex) { dump("failed to get prefs service!\n"); return; } /* generate the list of directory servers from ... | |
function nsLDAPPrefsService() { var arrayOfDirectories; var j = 0; try { gPrefInt = Components.classes["@mozilla.org/preferences-service;1"]; gPrefInt = gPrefInt.getService(nsIPrefBranch); } catch (ex) { dump("failed to get prefs service!\n"); return; } var prefCount = {value:0}; try { arrayOfDirectories = this.getSer... | function nsLDAPPrefsService() {} | function nsLDAPPrefsService() { var arrayOfDirectories; var j = 0; try { gPrefInt = Components.classes["@mozilla.org/preferences-service;1"]; gPrefInt = gPrefInt.getService(nsIPrefBranch); } catch (ex) { dump("failed to get prefs service!\n"); return; } /* generate the list of directory servers from ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.