rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (winterOffset == standardTZOffset && summerOffset == daylightTZOffset) { if ((!standardName || standardName == summerTZname) && (!daylightName || daylightName == winterTZname)) | if (TZoffset2 == standardTZOffset && TZoffset1 == daylightTZOffset) { if ((!standardName || standardName == TZname1) && (!daylightName || daylightName == TZname2)) return 2; return 1; } if (TZoffset1 == standardTZOffset && TZoffset2 == TZoffset1 && !daylight) { if(!standardName || standardName == TZname2) return 2; r... | function checkTZ(someTZ) { var comp = icssrv.getTimezone(someTZ); var subComp = comp.getFirstSubcomponent("VTIMEZONE"); var standard = subComp.getFirstSubcomponent("STANDARD"); var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").stringValue; var standardName = standa... |
var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").stringValue; var standardName = standard.getFirstProperty("TZNAME").stringValue; | var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").valueAsIcalString; var standardName = standard.getFirstProperty("TZNAME").valueAsIcalString; | function checkTZ(someTZ) { var comp = icssrv.getTimezone(someTZ); var subComp = comp.getFirstSubcomponent("VTIMEZONE"); var standard = subComp.getFirstSubcomponent("STANDARD"); var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").stringValue; var standardName = standa... |
daylightTZOffset = daylight.getFirstProperty("TZOFFSETTO").stringValue; daylightName = daylight.getFirstProperty("TZNAME").stringValue; | daylightTZOffset = daylight.getFirstProperty("TZOFFSETTO").valueAsIcalString; daylightName = daylight.getFirstProperty("TZNAME").valueAsIcalString; | function checkTZ(someTZ) { var comp = icssrv.getTimezone(someTZ); var subComp = comp.getFirstSubcomponent("VTIMEZONE"); var standard = subComp.getFirstSubcomponent("STANDARD"); var standardTZOffset = standard.getFirstProperty("TZOFFSETTO").stringValue; var standardName = standa... |
dump("Word in edit field = "+word+"\n"); | function CheckWord(){ dump("SpellCheck: CheckWord\n"); word = dialog.wordInput.value; dump("Word in edit field = "+word+"\n"); if (word != "") { isMisspelled = edAppCore.checkCurrentWord(word); misspelledWord = word; }} | |
misspelledWord = word; | if (isMisspelled) { dump("CheckWord says word was misspelled\n"); misspelledWord = word; FillSuggestedList(); } else { ClearList(dialog.suggestedList); AppendStringToList(dialog.suggestedList, "(correct spelling)"); } | function CheckWord(){ dump("SpellCheck: CheckWord\n"); word = dialog.wordInput.value; dump("Word in edit field = "+word+"\n"); if (word != "") { isMisspelled = edAppCore.checkCurrentWord(word); misspelledWord = word; }} |
document.getElementById( "appName" ).value = this.chosenApp.unicodePath; | document.getElementById( "appName" ).value = this.chosenApp.path; | chooseApp : function () { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance( this.nsIFilePicker ); fp.init( window, this.getString( "chooseAppFilePickerTitle" ), this.nsIFilePicker.modeOpen ); // XXX - We want to say nsIFilePicker.filterExec... |
this.updateApplicationName(this.chosenApp.unicodePath); | this.updateApplicationName(this.chosenApp.path); | chooseApp: function() { var nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance( nsIFilePicker ); fp.init( this.mDialog, this.getString( "chooseAppFilePickerTitle" ), nsIFilePicker.modeOpen ... |
return(true); | function chooseCategory( aNode ){ var category = !aNode.id ? "NC:SearchEngineRoot" : "NC:SearchCategory?category=" + aNode.getAttribute("id"); nsPreferences.setUnicharPref("browser.search.last_search_category", category); var treeNode = document.getElementById("searchengines"); treeNode.setAttribu... | |
fileName = GetLocalFileURL("img"); | var fileName = GetLocalFileURL("img"); | function chooseFile(){ // Get a local file, converted into URL format fileName = GetLocalFileURL("img"); if (fileName && fileName != "") { dialog.srcInput.value = fileName; doOverallEnabling(); } // Put focus into the input field SetTextfieldFocus(dialog.srcInput);} |
"chrome,titlebar,modal,centerscreen", | "chrome,titlebar,modal,centerscreen,resizable", | function chooseFoldersToSearch(){ var dialog = window.openDialog("chrome://messenger/content/virtualFolderListDialog.xul", "", "chrome,titlebar,modal,centerscreen", {preselectedURI:window.arguments[0].preselectedURI, searc... |
var folder = GetMsgFolderFromUri(window.arguments[0].preselectedURI, false); | var srchFolderUriArray = gSearchFolderURIs.split('|'); var folder = GetMsgFolderFromUri(srchFolderUriArray[0] ? srchFolderUriArray[0] : window.arguments[0].preselectedURI, false); | function chooseFoldersToSearch(){ var folder = GetMsgFolderFromUri(window.arguments[0].preselectedURI, false); var dialog = window.openDialog("chrome://messenger/content/virtualFolderListDialog.xul", "", "chrome,titlebar,modal,centerscreen,resizable", {... |
aRootFolder = fp.file.unicodePath; | aRootFolder = fp.file.path; | function chooseProfileFolder( aRootFolder ){ if( !aRootFolder ) { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(Components.interfaces.nsIFilePicker); fp.init(window, gNewProfile1_2Bundle.getString("chooseFolder"), Components.interfaces.nsIFilePicker.modeGetFolder); fp.... |
if ( aRootFolder != top.profile.defaultProfileParentDir.unicodePath ) | if ( aRootFolder != top.profile.defaultProfileParentDir.path ) | function chooseProfileFolder( aRootFolder ){ if( !aRootFolder ) { try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(Components.interfaces.nsIFilePicker); fp.init(window, gNewProfile1_2Bundle.getString("chooseFolder"), Components.interfaces.nsIFilePicker.modeGetFolder); fp.... |
document.getElementById('xs'+idx).src="testopia/img/"+status+"_small.gif"; | try{ var deps = fields[3]; ids = deps.split(","); for (var i=0; i<ids.length; i++){ if (status == 'FAILED') document.getElementById('xs'+ids[i]).src="testopia/img/BLOCKED_small.gif"; else document.getElementById('xs'+ids[i]).src="testopia/img/IDLE_small.gif"; } } catch (e){} document.getElementById('xs'+cid).src="testo... | function chStat(idx, sid, cid){ displayMsg('pp'+idx, 3, MSG_WAIT.blink()); disableAllButtons(true); dojo.io.bind({ url: "tr_show_caserun.cgi", content: { caserun_id: cid, index: idx, status_id: sid, action: 'update_status'}, load: function(type, data, evt){ fillrow(data, idx); var fields = data.split(... |
this.secret = false; | function CIRCChanMode (parent){ this.parent = parent; this.limit = -1; this.key = ""; this.moderated = false; this.publicMessages = true; this.publicTopic = true; this.invite = false; this.pvt = false; } | |
this.normalizedName = encodedName.toLowerCase(); | this.normalizedName = parent.toLowerCase(encodedName); | function CIRCChannel (parent, encodedName, unicodeName){ this.normalizedName = encodedName.toLowerCase(); this.name = this.normalizedName; if (this.normalizedName in parent.channels) return parent.channels[this.normalizedName]; this.parent = parent; this.encodedName = encodedName; if (unicodeNa... |
this.whois = cusr_whois; | function CIRCChanUser (parent, nick, isOp, isVoice){ var properNick = nick; nick = nick.toLowerCase(); var existingUser = parent.users[nick]; if (typeof existingUser != "undefined") { if (typeof isOp != "undefined") existingUser.isOp = isOp; if (typeof isVoice != "undefined") existingUs... | |
nick = nick.toLowerCase(); | nick = parent.parent.toLowerCase(nick); | function CIRCChanUser (parent, nick, modes){ var properNick = nick; nick = nick.toLowerCase(); if (nick in parent.users) { var existingUser = parent.users[nick]; if (modes) { // If we start with a single character mode, assume we're replacing // the list. (i.e.... |
function CIRCNetwork (name, serverList, eventPump) | function CIRCNetwork (name, serverList, eventPump, temporary) | function CIRCNetwork (name, serverList, eventPump){ this.unicodeName = name; this.viewName = name; this.canonicalName = name; this.encodedName = name; this.servers = new Object(); this.serverList = new Array(); this.ignoreList = new Object(); this.ignoreMaskCache = new Object(); this.state = ... |
this.temporary = Boolean(temporary); | function CIRCNetwork (name, serverList, eventPump){ this.unicodeName = name; this.viewName = name; this.canonicalName = name; this.encodedName = name; this.servers = new Object(); this.serverList = new Array(); this.ignoreList = new Object(); this.ignoreMaskCache = new Object(); this.state = ... | |
nick = nick.toLowerCase(); | nick = parent.toLowerCase(nick); | function CIRCUser (parent, nick, name, host){ var properNick = nick; nick = nick.toLowerCase(); if (nick in parent.users) { var existingUser = parent.users[nick]; if (name) existingUser.name = name; if (host) existingUser.host = host; return existingUser; ... |
this.data = null; | this.data = new Array; this.rows = 0; | clear: function() { this.data = null; }, |
var cs_class = Components.classes['mozilla.consoleservice.1']; | var cs_class = Components.classes['@mozilla.org/consoleservice;1']; | function clear () { try { var cs_class = Components.classes['mozilla.consoleservice.1']; var cs_iface = Components.interfaces.nsIConsoleService; var cs_isupports = cs_class.getService(); var cs = cs_isupports.QueryInterface(cs_iface); } catch(exn) { // Couldn't get the console s... |
while (list.childNodes.length) list.removeItemAt(list.childNodes.length - 1); | while (list.hasChildNodes()) list.removeChild(list.lastChild); | function ClearAttachmentList() { // we also have to disable the File/Attachments menuitem node = document.getElementById("fileAttachmentMenu"); if (node) node.setAttribute("disabled", "true"); // clear selection var list = document.getElementById('attachmentList'); list.clearSelection(); while (list.childNod... |
function ClearAttachmentMenu() | function ClearAttachmentMenu(popup) | function ClearAttachmentMenu() { var popup = document.getElementById("attachmentPopup"); if ( popup ) { while ( popup.childNodes.length ) popup.removeChild(popup.childNodes[0]); } } |
var popup = document.getElementById("attachmentPopup"); | function ClearAttachmentMenu() { var popup = document.getElementById("attachmentPopup"); if ( popup ) { while ( popup.childNodes.length ) popup.removeChild(popup.childNodes[0]); } } | |
while ( popup.childNodes.length ) | while ( popup.childNodes.length > 2 ) | function ClearAttachmentMenu() { var popup = document.getElementById("attachmentPopup"); if ( popup ) { while ( popup.childNodes.length ) popup.removeChild(popup.childNodes[0]); } } |
dump("ClearCardViewPane\n"); | function ClearCardViewPane(){ dump("ClearCardViewPane\n"); cvSetVisible(top.cvData.CardViewBox, false); // HACK - we need to be able to set the entire box or div to display:none when bug fixed var data = top.cvData; // title cvSetVisible(data.CardTitle, false); // Name section cvSetVisible(data.cvhName, false); cvSetVi... | |
var data = top.cvData; cvSetVisible(data.CardTitle, false); cvSetVisible(data.cvhName, false); cvSetVisible(data.cvNickname, false); cvSetVisible(data.cvEmail1, false); cvSetVisible(data.cvEmail2, false); cvSetVisible(data.cvhHome, false); cvSetVisible(data.cvHomeAddress, false); cvSetVisible(data.cvHomeAddress2, f... | function ClearCardViewPane(){ dump("ClearCardViewPane\n"); cvSetVisible(top.cvData.CardViewBox, false); // HACK - we need to be able to set the entire box or div to display:none when bug fixed var data = top.cvData; // title cvSetVisible(data.CardTitle, false); // Name section cvSetVisible(data.cvhName, false); cvSetVi... | |
["ifl_name","ifl_value","ifl_host","ifl_path","ifl_isSecure","ifl_expires"]; | ["ifl_name","ifl_value","ifl_host","ifl_path","ifl_isSecure","ifl_expires","ifl_policy"]; | function ClearCookieProperties() { var properties = ["ifl_name","ifl_value","ifl_host","ifl_path","ifl_isSecure","ifl_expires"]; for (var prop=0; prop<properties.length; prop++) { document.getElementById(properties[prop]).setAttribute("value",""); }} |
currentHeaderData.UserAgentValue = ""; | function ClearCurrentHeaders(){ currentHeaderData.SubjectValue = ""; currentHeaderData.FromValue = ""; currentHeaderData.DateValue = ""; currentHeaderData.ToValue = ""; currentHeaderData.CcValue = ""; currentHeaderData.NewsgroupsValue = ""; currentHeaderData.UserAgentValue = "";} | |
return; | function ClearEditMessageButton() { return; var editBox = document.getElementById("editMessageBox"); if (editBox) editBox.setAttribute("collapsed", "true");} | |
else { if (numOfEmailsInFromField < gNumOfEmailsToShowToggleButtonInFront) delIndex = 0; } | function ClearEmailFieldWithButton(parentDiv, headerName){ if (parentDiv) { // the toggle button could be the very first child (if there are many email addresses) // or it could be the last child in the child nodes.. // we should never remove the toggle button... // We use the delIndex variable to keep tr... | |
var nodes = info_list.childNodes; for (var i=0; i<nodes.length; i++) { info_list.removeChild(nodes[i]) } | while (info_list.firstChild) info_list.removeChild(info_list.firstChild); | function ClearInfoList(){ var info_list = document.getElementById("info_list"); var nodes = info_list.childNodes; for (var i=0; i<nodes.length; i++) { info_list.removeChild(nodes[i]) }} |
ClearThreadTreeSelection(); | ClearThreadPaneSelection(); | function ClearMessageSelection(){ ClearThreadTreeSelection();} |
dump("XXX implement ClearThreadPane()\n"); | gDBView = null; | function ClearThreadPane(){ dump("XXX implement ClearThreadPane()\n");} |
dump("XXX implement ClearThreadPane()\n"); | function ClearThreadPane(){} | |
permissionsTree.treeBoxObject.view.selection.select(-1); | var oldCount = permissionsTreeView.rowCount; | function clearTree() { permissionsTree.treeBoxObject.view.selection.select(-1); permissionsTreeView.rowCount = 0; permissionsTree.treeBoxObject.invalidate(); document.getElementById("removePermission").setAttribute("disabled", "true") document.getElementById("removeAllPermissions").setAttribute("disabled","true")... |
permissionsTree.treeBoxObject.invalidate(); | permissionsTree.treeBoxObject.rowCountChanged(0, -oldCount); | function clearTree() { permissionsTree.treeBoxObject.view.selection.select(-1); permissionsTreeView.rowCount = 0; permissionsTree.treeBoxObject.invalidate(); document.getElementById("removePermission").setAttribute("disabled", "true") document.getElementById("removeAllPermissions").setAttribute("disabled","true")... |
function cli_addnet(name, serverList) | function cli_addnet(name, serverList, temporary) | function cli_addnet(name, serverList){ client.networks[name] = new CIRCNetwork (name, serverList, client.eventPump);} |
new CIRCNetwork (name, serverList, client.eventPump); | new CIRCNetwork (name, serverList, client.eventPump, temporary); | function cli_addnet(name, serverList){ client.networks[name] = new CIRCNetwork (name, serverList, client.eventPump);} |
for (var i = 0; i < bplist.length; ++i) | for (i = 0; i < bplist.length; ++i) | function cli_ibreak(e){ if (!e.inputData) { /* if no input data, just list the breakpoints */ var bplist = console.breakpoints.childData; if (bplist.length == 0) { display (MSG_NO_BREAKPOINTS_SET); return true; } display (getMsg(MSN_BP_HEADER, ... |
for (var i in matchingFiles) | for (i in matchingFiles) | function cli_ibreak(e){ if (!e.inputData) { /* if no input data, just list the breakpoints */ var bplist = console.breakpoints.childData; if (bplist.length == 0) { display (MSG_NO_BREAKPOINTS_SET); return true; } display (getMsg(MSN_BP_HEADER, ... |
return false; | return; | function cli_icommands (e){ if (!console.frames) { display (MSG_ERR_NO_STACK, MT_ERROR); return false; } cont();} |
onHideCurrentView(); | onHideView(client.currentObject); | function cli_ihide (e){ onHideCurrentView(); return true;} |
e.inputData.match(/^([^\s\:]+)[\s\:]?(?:(\d+)(?:\s+(\S+)|$)|(\S+)|$)/); | e.inputData.match(/^([^\s\:]+)[\s\:]?(?:(\d+)(?:\s+(\S+)|\s*$)|(\S+)|$)/); | function cli_iserver (e){ if (!e.inputData) return false; var ary = e.inputData.match(/^([^\s\:]+)[\s\:]?(?:(\d+)(?:\s+(\S+)|$)|(\S+)|$)/); var pass; if (3 in ary && ary[3]) pass = ary[3]; else if (4 in ary && ary[4]) pass = ary[4]; if (ary == null) return false... |
var nick = e.inputData.toLowerCase(); var cuser = e.channel.users[nick]; | var cuser = e.channel.getUser(e.inputData); | function cli_izoom (e){ client.currentObject.display ("**WARNING** Zoom is busted at this time :(", "WARNING"); if (!e.inputData) return false; if (!e.channel) { client.currentObject.display ("Zoom can only be used from channels.", ... |
client.currentObject.display ("User '" + e.inputData + "' not found."); | client.currentObject.display ("User '" + e.inputData + "' not found.", "ERROR"); | function cli_izoom (e){ client.currentObject.display ("**WARNING** Zoom is busted at this time :(", "WARNING"); if (!e.inputData) return false; if (!e.channel) { client.currentObject.display ("Zoom can only be used from channels.", ... |
client._loader = cls.createInstance(mozIJSSubScriptLoader); | client._loader = cls.getService(mozIJSSubScriptLoader); | function cli_load(url, scope){ if (!("_loader" in client)) { const LOADER_CTRID = "@mozilla.org/moz/jssubscript-loader;1"; const mozIJSSubScriptLoader = Components.interfaces.mozIJSSubScriptLoader; var cls; if ((cls = Components.classes[LOADER_CTRID])) client._lo... |
client.display ("No default action for objects of type ``" + client.currentObject.TYPE + "''", "ERROR"); | if (msg != "") client.currentObject.display ("No default action for objects of type ``" + client.currentObject.TYPE + "''", "ERROR"); | function cli_say(msg){ switch (client.currentObject.TYPE) { case "IRCChannel": case "IRCUser": case "IRCChanUser": msg = filterOutput (msg, "PRIVMSG"); client.currentObject.display (msg, "PRIVMSG", "ME!", client.currentObject); ... |
return false; | { var nicksAry = e.channel.getSelectedUsers(); if (nicksAry) { dd ("Sending [" + nicksAry.length + "] nicks the whois call\n"); mapObjFunc(nicksAry, "whois", null); return true; } else { return false; } } var nick = e.inputData.match( /\S+/ ); | function cli_whois (e){ if (!e.inputData) return false; if (!e.network || !e.network.isConnected()) { if (!e.network) client.currentObject.display ("No network selected.", "ERROR"); else client.currentObject.display ("Network '" + e.network.name + ... |
if (!e.network || !e.network.isConnected()) { if (!e.network) client.currentObject.display ("No network selected.", "ERROR"); else client.currentObject.display ("Network '" + e.network.name + " is not connected.", "ERROR"); return false; } | e.server.whois (nick); | function cli_whois (e){ if (!e.inputData) return false; if (!e.network || !e.network.isConnected()) { if (!e.network) client.currentObject.display ("No network selected.", "ERROR"); else client.currentObject.display ("Network '" + e.network.name + ... |
var nick = e.inputData.match(/\S+/); e.server.sendData ("whois " + nick + "\n"); | function cli_whois (e){ if (!e.inputData) return false; if (!e.network || !e.network.isConnected()) { if (!e.network) client.currentObject.display ("No network selected.", "ERROR"); else client.currentObject.display ("Network '" + e.network.name + ... | |
oeDatePicker.gPopup.closePopup(); | oeDatePicker.gPopup.hidePopup(); | oeDatePicker.clickDay = function( newDayItemNumber ){ // get the clicked day var dayNumberItem = document.getElementById( "oe-date-picker-month-day-text-" + newDayItemNumber ); var dayNumber = dayNumberItem.getAttribute( "value" ); // they may have clicked an unfilled day, if so ignore it and leave t... |
if ((event.button != 1) || (event.clickCount != 2)) | if ((event.button != 1) || (event.clickCount != 2) || (target.nodeName != "treeitem")) | function clicked(event, target){ if ((event.button != 1) || (event.clickCount != 2)) return(false); if (target.getAttribute('container') == 'true') return(false); OpenBookmarkURL(target, document.getElementById('bookmarksTree').database); return(true);} |
if (target.getAttribute('container') == 'true') | if (target.getAttribute("container") == "true") | function clicked(event, target){ if ((event.button != 1) || (event.clickCount != 2)) return(false); if (target.getAttribute('container') == 'true') return(false); OpenBookmarkURL(target, document.getElementById('bookmarksTree').database); return(true);} |
top.OpenBookmarkURL(target, 'bookmarksTree'); | top.OpenBookmarkURL(target, document.getElementById('bookmarksTree').database); | function clicked(event, target) { if (target.getAttribute('container') == 'true') { if (target.getAttribute('open') == 'true') { target.removeAttribute('open'); } else { target.setAttribute('open','true'); } } else { if (event.clickCount == 2) { top.OpenBookmarkURL(target, 'bookmarksTree'); ... |
OpenBookmarkURL(event, target, document.getElementById('bookmarksTree').database); | sidebarOpenURL(event, target, document.getElementById('bookmarksTree').database); | function clicked(event, target){ if ((event.button != 1) || (event.detail != 2) || (target.nodeName != "treeitem")) return(false); if (event.altKey) { // if altKey is down then just open the Bookmark Properties dialog BookmarkProperties(); return(true); } if (target.getAttribute("containe... |
var hour24 = hourNumber; | hour24 = hourNumber; | oeTimePicker.clickHour = function( hourItem, hourNumber ){ // select the item oeTimePicker.selectHourItem( hourItem ); // Change the hour in the selected time, add 12 if PM. if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) ) { var hour24 = hourNumber; } else { var hour24 = hou... |
var hour24 = hourNumber + 12; | hour24 = hourNumber + 12; | oeTimePicker.clickHour = function( hourItem, hourNumber ){ // select the item oeTimePicker.selectHourItem( hourItem ); // Change the hour in the selected time, add 12 if PM. if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) ) { var hour24 = hourNumber; } else { var hour24 = hou... |
oeTimePicker.gPopup.closePopup (); | oeTimePicker.gPopup.hidePopup(); | oeTimePicker.clickMinute = function( minuteItem, minuteNumber ){ // set the minutes in the selected time oeTimePicker.gSelectedTime.setMinutes( minuteNumber ); oeTimePicker.selectMinuteItem( minuteItem ); oeTimePicker.selectTime(); oeTimePicker.gPopup.closePopup ();} |
} var oldDate = oeDatePicker.gSelectedDate.getDate(); var yearNumber = oeDatePicker.gSelectedDate.getFullYear(); var lastDayOfMonth = DateUtils.getLastDayOfMonth( yearNumber, newMonthNumber-1 ); if ( oldDate > lastDayOfMonth ) { oeDatePicker.gSelectedDate.setDate(lastDayOfMonth); | oeDatePicker.clickMonth = function( newMonthItem, newMonthNumber ){ // already selected, return if( oeDatePicker.gSelectedMonthItem == newMonthItem ) { return; } // update the selected date oeDatePicker.gSelectedDate.setMonth( newMonthNumber - 1 ); // select Month oeDatePicker.selec... | |
this.listContainer = document.createElement ("html:span"); | this.listContainer = document.createElement ("html:div"); | function CListBox (){ this.listContainer = document.createElement ("html:span"); this.listContainer.setAttribute ("class", "list");} |
m.mStartDate = this.mStartDate.clone(); m.mEndDate = this.mEndDate.clone(); m.mStampDate = this.mStampDate.clone(); | if (this.mStartDate) m.mStartDate = this.mStartDate.clone(); if (this.mEndDate) m.mEndDate = this.mEndDate.clone(); if (this.mStampDate) m.mStampDate = this.mStampDate.clone(); | clone: function () { var m = new calEvent(); this.cloneItemBaseInto(m); m.mStartDate = this.mStartDate.clone(); m.mEndDate = this.mEndDate.clone(); m.mStampDate = this.mStampDate.clone(); return m; }, |
m.mRecurrenceInfo = this.mRecurrenceInfo.clone(); | cloneItemBaseInto: function (m) { m.mImmutable = false; m.mGeneration = this.mGeneration; m.mLastModifiedTime = this.mLastModifiedTime; m.mParent = this.mParent; m.mId = this.mId; m.mTitle = this.mTitle; m.mPriority = this.mPriority; m.mIsPrivate = this.mIsPri... | |
m.mCreationDate = this.mCreationDate.clone(); m.mAlarmTime = this.mAlarmTime.clone(); | if (this.mRecurrenceInfo) m.mRecurrenceInfo = this.mRecurrenceInfo.clone(); if (this.mCreationDate) m.mCreationDate = this.mCreationDate.clone(); if (this.mAlarmTime) m.mAlarmTime = this.mAlarmTime.clone(); | cloneItemBaseInto: function (m) { m.mImmutable = false; m.mGeneration = this.mGeneration; m.mLastModifiedTime = this.mLastModifiedTime; m.mParent = this.mParent; m.mId = this.mId; m.mTitle = this.mTitle; m.mPriority = this.mPriority; m.mIsPrivate = this.mIsPri... |
m.mAttendees = []; for (var i = 0; i < this.mAttendees.length; i++) m.mAttendees[i] = this.mAttendees[i].clone(); | if (this.mAttendees) { m.mAttendees = new Array(this.mAttendees.length); for (var i = 0; i < this.mAttendees.length; i++) m.mAttendees[i] = this.mAttendees[i].clone(); } else m.mAttendees = null; | cloneItemBaseInto: function (m, aNewParent) { this.ensureNotDirty(); m.mImmutable = false; m.mIsProxy = this.mIsProxy; m.mParentItem = aNewParent || this.mParentItem; m.mCalendar = this.mCalendar; if (this.mRecurrenceInfo) { m.mRecurrenceInfo = this.mRecurrenceIn... |
if (this.alarmOffset) { m.alarmOffset = this.alarmOffset.clone(); if (this.alarmLastAck) { m.alarmLastAck = this.alarmLastAck.clone(); } else { m.alarmLastAck = null; } } else { m.alarmOffset = null; } m.alarmRelated = this.alarmRelated; | cloneItemBaseInto: function (m, aNewParent) { this.ensureNotDirty(); m.mImmutable = false; m.mIsProxy = this.mIsProxy; m.mParentItem = aNewParent || this.mParentItem; m.mCalendar = this.mCalendar; if (this.mRecurrenceInfo) { m.mRecurrenceInfo = this.mRecurrenceIn... | |
m.mIsPrivate = this.mIsPrivate; m.mMethod = this.mMethod; | m.mPrivacy = this.mPrivacy; | cloneItemBaseInto: function (m) { m.mImmutable = false; m.mGeneration = this.mGeneration; m.mLastModifiedTime = this.mLastModifiedTime.clone(); m.mParent = this.mParent; m.mId = this.mId; m.mTitle = this.mTitle; m.mPriority = this.mPriority; m.mIsPrivate = thi... |
m.mLastModifiedTime = this.mLastModifiedTime; | m.mLastModifiedTime = this.mLastModifiedTime.clone(); | cloneItemBaseInto: function (m) { m.mImmutable = false; m.mGeneration = this.mGeneration; m.mLastModifiedTime = this.mLastModifiedTime; m.mParent = this.mParent; m.mId = this.mId; m.mTitle = this.mTitle; m.mPriority = this.mPriority; m.mIsPrivate = this.mIsPri... |
dump("SpellCheck: Close (can't close yet - CRASHES!)\n"); | dump("SpellCheck: Spell Checker Closed\n"); | function Close(){ dump("SpellCheck: Close (can't close yet - CRASHES!)\n"); edAppCore.closeSpellChecking();} |
window.close(); | function Close(){ dump("SpellCheck: Close (can't close yet - CRASHES!)\n"); edAppCore.closeSpellChecking();} | |
if (window.outerHeight > 1) | if (gCurrentSize > 1) | function closeAlert(){ if (window.outerHeight > 1) { window.screenY += gSlideIncrement; window.outerHeight -= gSlideIncrement; setTimeout(closeAlert, gSlideTime); } else { if (gAlertListener) gAlertListener.observe(null, "alertfinished", gAlertCookie); window.close(); }} |
window.screenY += gSlideIncrement; window.outerHeight -= gSlideIncrement; | animate(-gSlideIncrement); | function closeAlert(){ if (window.outerHeight > 1) { window.screenY += gSlideIncrement; window.outerHeight -= gSlideIncrement; setTimeout(closeAlert, gSlideTime); } else { if (gAlertListener) gAlertListener.observe(null, "alertfinished", gAlertCookie); window.close(); }} |
if (gCurrentHeight) | if (window.outerHeight > 1) | function closeAlert(){ if (gCurrentHeight) { gCurrentHeight -= gSlideIncrement; window.screenY += gSlideIncrement; window.outerHeight -= gSlideIncrement; setTimeout(closeAlert, gSlideTime); } else { if (gAlertListener) gAlertListener.observe(null, "alertfinished", gAlertCookie); window.close... |
gCurrentHeight -= gSlideIncrement; | function closeAlert(){ if (gCurrentHeight) { gCurrentHeight -= gSlideIncrement; window.screenY += gSlideIncrement; window.outerHeight -= gSlideIncrement; setTimeout(closeAlert, gSlideTime); } else { if (gAlertListener) gAlertListener.observe(null, "alertfinished", gAlertCookie); window.close... | |
do { dd ("clearing script " + e.scriptRecList[0].constructor.name); cmdClearScript ({scriptRec: e.scriptRecList[0]}); e.scriptRecList.shift(); } while (e.scriptRecList.length > 0); | for (i = 0; i < e.scriptRecList.length; ++i) cmdClearScript ({scriptRec: e.scriptRecList[i]}); | function cmdClearScript (e){ if ("scriptRecList" in e) { do { dd ("clearing script " + e.scriptRecList[0].constructor.name); cmdClearScript ({scriptRec: e.scriptRecList[0]}); e.scriptRecList.shift(); } while (e.scriptRecList.length > 0); ... |
for (var i = console.breakpoints.childData.length - 1; i >= 0; --i) | for (i = console.breakpoints.childData.length - 1; i >= 0; --i) | function cmdClearScript (e){ if ("scriptRecList" in e) { do { dd ("clearing script " + e.scriptRecList[0].constructor.name); cmdClearScript ({scriptRec: e.scriptRecList[0]}); e.scriptRecList.shift(); } while (e.scriptRecList.length > 0); ... |
--console._stopLevel; | function cmdCont (e){ disableDebugCommands(); --console._stopLevel; console.stackView.saveState(); console.jsds.exitNestedEventLoop();} | |
var node = this.getSelectedNode(); | var node = this.selectedNode; | cmdCopySelectedXML: function() { var node = this.getSelectedNode(); if (node) { var xml = this.toXML(node); var helper = XPCU.getService(kClipboardHelperCID, "nsIClipboardHelper"); helper.copyStringToClipboard(xml, kGlobalClipboard); } }, |
helper.copyStringToClipboard(xml, kGlobalClipboard); | helper.copyString(xml); | cmdCopySelectedXML: function() { var node = this.getSelectedNode(); if (node) { var xml = this.toXML(node); var helper = XPCU.getService(kClipboardHelperCID, "nsIClipboardHelper"); helper.copyStringToClipboard(xml, kGlobalClipboard); } }, |
client.currentObject = null; setCurrentObject(client.viewsArray[i].source); | oldView = client.viewsArray[i].source | function cmdDeleteView(e){ if (!e.view) e.view = e.sourceObject; if (e.view.TYPE == "IRCChannel" && e.view.active) e.view.part(); if (client.viewsArray.length < 2) { display(MSG_ERR_LAST_VIEW, MT_ERROR); return; } var tb = getTabForObject(e.view); if (tb) { ... |
client.currentObject = null; setCurrentObject(oldView); | function cmdDeleteView(e){ if (!e.view) e.view = e.sourceObject; if (e.view.TYPE == "IRCChannel" && e.view.active) e.view.part(); if (client.viewsArray.length < 2) { display(MSG_ERR_LAST_VIEW, MT_ERROR); return; } var tb = getTabForObject(e.view); if (tb) { ... | |
if (typeof e.reason != "string") | if ((typeof e.reason != "string") || !e.reason) e.reason = client.prefs["defaultQuitMsg"]; if (!e.reason) | function cmdDisconnect(e){ if (typeof e.reason != "string") e.reason = client.userAgent; e.network.quit(e.reason);} |
if (typeof e.reason != "string") | if ((typeof e.reason != "string") || !e.reason) e.reason = client.prefs["defaultQuitMsg"]; if (!e.reason) | function cmdDisconnectAll(e){ if (confirmEx(MSG_CONFIRM_DISCONNECT_ALL, ["!yes", "!no"]) != 0) return; var conNetworks = client.getConnectedNetworks(); if (conNetworks.length <= 0) { display(MSG_NO_CONNECTED_NETS, MT_ERROR); return; } if (typeof e.reason != "string") e.reas... |
dd ((i++) + ": " + filter.glob + " '" + filter.urlPattern + "'"); | dd (i + ": " + filter.globalObject + " '" + filter.urlPattern + "' " + filter.flags); console.filters[i++] = filter; | function cmdDumpFilters(){ var i = 0; var enumer = { enumerateFilter: function enum_f (filter) { dd ((i++) + ": " + filter.glob + " '" + filter.urlPattern + "'"); } }; console.jsds.enumerateFilters (enumer);} |
dd(e.tree + ":\n" + tov_formatBranch (eval(e.tree), "", e.depth)); | dd(e.tree + ":\n" + xtv_formatBranch(eval(e.tree), "", e.depth)); | function cmdDumpTree(e){ if (!e.depth) e.depth = 0; dd(e.tree + ":\n" + tov_formatBranch (eval(e.tree), "", e.depth));} |
if (e.frameIndex != getCurrentFrameIndex()) dispatch ("frame", {frameIndex: e.frameIndex}); | var frame = e.frameRec.frame; | function cmdFindFrame (e){ if (e.frameIndex != getCurrentFrameIndex()) dispatch ("frame", {frameIndex: e.frameIndex}); var frame = getCurrentFrame(); var scriptContainer = console.scripts[frame.script.fileName]; if (!scriptContainer) { dd ("frame from unknown source"); return false; ... |
var frame = getCurrentFrame(); | displayFrame (frame, e.frameRec.childIndex, true); if (frame.isNative) return true; | function cmdFindFrame (e){ if (e.frameIndex != getCurrentFrameIndex()) dispatch ("frame", {frameIndex: e.frameIndex}); var frame = getCurrentFrame(); var scriptContainer = console.scripts[frame.script.fileName]; if (!scriptContainer) { dd ("frame from unknown source"); return false; ... |
display (getMsg (MSN_ERR_NO_SOURCE, e.url), MT_ERROR); | display (getMsg (MSN_ERR_NO_SCRIPT, e.url), MT_ERROR); | function cmdFindURL (e){ if (!e.url) { console.sourceView.displaySourceText(null); return true; } if (!(e.url in console.scripts)) { display (getMsg (MSN_ERR_NO_SOURCE, e.url), MT_ERROR); return false; } console.sourceView.details = null; console.highlightFile = e... |
--console._stopLevel; | function cmdFinish (e){ if (console.frames.length == 1) return cmdCont(); console._stepOverLevel = 1; setStopState(false); console.jsds.functionHook = console._callHook; disableDebugCommands() --console._stopLevel; console.stackView.saveState(); console.jsds.exitNestedEventLoop(); ... | |
if (isNaN(e.frameIndex)) | if (e.frameIndex != null) setCurrentFrameByIndex(e.frameIndex); else | function cmdFrame (e){ if (isNaN(e.frameIndex)) e.frameIndex = getCurrentFrameIndex(); setCurrentFrameByIndex(e.frameIndex); displayFrame (console.frames[e.frameIndex], e.frameIndex, true); return true;} |
setCurrentFrameByIndex(e.frameIndex); displayFrame (console.frames[e.frameIndex], e.frameIndex, true); | dispatch ("find-frame", {frameRec: console.stackView.stack.childData[e.frameIndex]}); | function cmdFrame (e){ if (isNaN(e.frameIndex)) e.frameIndex = getCurrentFrameIndex(); setCurrentFrameByIndex(e.frameIndex); displayFrame (console.frames[e.frameIndex], e.frameIndex, true); return true;} |
if (e.command.name == "goto-url-external") | if ((e.command.name == "goto-url-external") || (client.host == "XULrunner")) | function cmdGotoURL(e){ const IO_SVC = "@mozilla.org/network/io-service;1"; const EXT_PROTO_SVC = "@mozilla.org/uriloader/external-protocol-service;1"; if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.... |
window.focus(); | if (client.prefs["link.focus"]) window.focus(); | function cmdGotoURL(e){ const IO_SVC = "@mozilla.org/network/io-service;1"; const EXT_PROTO_SVC = "@mozilla.org/uriloader/external-protocol-service;1"; if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.... |
"javascript:void(view.dispatch('" + decodeURI(ary[1]) + "'))"; | "javascript:void(view.dispatch('" + decodeURI(ary[1]) + "', null, true))"; | function cmdGotoURL(e){ const IO_SVC = "@mozilla.org/network/io-service;1"; const EXT_PROTO_SVC = "@mozilla.org/uriloader/external-protocol-service;1"; if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.... |
var ary; ary = client.commandManager.list (e.pattern, CMD_CONSOLE); | if (!e.pattern) { if ("hello" in e) display(MSG_HELP_INTRO, "HELLO"); else display(MSG_HELP_INTRO); return; } var ary = client.commandManager.list(e.pattern, CMD_CONSOLE); | function cmdHelp (e){ var ary; ary = client.commandManager.list (e.pattern, CMD_CONSOLE); if (ary.length == 0) { display (getMsg(MSG_ERR_NO_COMMAND, e.pattern), MT_ERROR); return false; } for (var i in ary) { display (getMsg(MSG_FMT_USAGE, [ary[i].name, ary[i].usage]), MT_USAGE... |
display (getMsg(MSG_ERR_NO_COMMAND, e.pattern), MT_ERROR); return false; | display(getMsg(MSG_ERR_NO_COMMAND, e.pattern), MT_ERROR); return; | function cmdHelp (e){ var ary; ary = client.commandManager.list (e.pattern, CMD_CONSOLE); if (ary.length == 0) { display (getMsg(MSG_ERR_NO_COMMAND, e.pattern), MT_ERROR); return false; } for (var i in ary) { display (getMsg(MSG_FMT_USAGE, [ary[i].name, ary[i].usage]), MT_USAGE... |
return true; | return; | function cmdHelp (e){ var ary; ary = client.commandManager.list (e.pattern, CMD_CONSOLE); if (ary.length == 0) { display (getMsg(MSG_ERR_NO_COMMAND, e.pattern), MT_ERROR); return false; } for (var i in ary) { display (getMsg(MSG_FMT_USAGE, [ary[i].name, ary[i].usage]), MT_USAGE... |
client.currentObject = null; setCurrentObject (client.viewsArray[i].source); | oldView = client.viewsArray[i].source | function cmdHideView(e){ if (!e.view) e.view = e.sourceObject; var tb = getTabForObject(e.view); if (tb) { var i = deleteTab (tb); if (i != -1) { client.deck.removeChild(e.view.frame); delete e.view.frame; if (client.currentObject == e.view) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.