rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
return true;
write : function(buffer, perms){ if(!this.fileInst){ dump("Please open a file handle first . . .\n"); return; } if(!buffer) buffer = " "; var buffSize = buffer.length; try{ if(!this.fileChannel) this.fileChannel = new FileChannel()...
return cacheSize.value * 1000;
var intValue = parseInt(cacheSize.value, 10) + ''; return intValue != "NaN" ? intValue * 1000 : 0;
writeCacheSizePref: function () { var cacheSize = document.getElementById("cacheSize"); return cacheSize.value * 1000; },
return enableRestricted.checked ? 1 : 0;
return enableRestricted.checked ? 3 : 1;
writeEnableImagesPref: function () { var enableImages = document.getElementById("enableImages"); if (enableImages.checked) { var enableRestricted = document.getElementById("enableRestricted"); return enableRestricted.checked ? 1 : 0; } return 2; },
if (checkbox.checked) {
if (checkbox.checked==true) {
function writeEnableImagesPref(){ var checkbox = document.getElementById("enableImages"); if (checkbox.checked) { return 1; } return 2;}
} return 2;
} else { return 2; }
function writeEnableImagesPref(){ var checkbox = document.getElementById("enableImages"); if (checkbox.checked) { return 1; } return 2;}
this.locked = true;
this.lock();
writeICS: function () { this.locked = true; if (!this.mUri) throw Components.results.NS_ERROR_FAILURE; // makeBackup will call doWriteICS this.makeBackup(this.doWriteICS); },
if (installLogWriter) installLogWriter.registryKeyValueSet(this.toString(), name);
writeIntValue: function(name, value) { this._key.writeIntValue(name, value); if (installLogWriter) installLogWriter.registryKeyValueSet(this.toString(), name); },
pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
const PREF_CTRID = "@mozilla.org/preferences-service;1"; const nsIPrefBranch = Components.interfaces.nsIPrefBranch; var pref = Components.classes[PREF_CTRID].getService(nsIPrefBranch);
function writeIRCPrefs (rootNode){ pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) ...
if (item instanceof kCalIEvent)
if (item instanceof Ci.calIEvent)
writeItem: function (item, olditem) { var flags = 0; this.deleteOldItem(item, olditem); flags |= this.writeAttendees(item, olditem); flags |= this.writeRecurrence(item, olditem); flags |= this.writeProperties(item, olditem); flags |= this.writeAttachments(item, olditem); ...
else if (item instanceof kCalITodo)
else if (item instanceof Ci.calITodo)
writeItem: function (item, olditem) { var flags = 0; this.deleteOldItem(item, olditem); flags |= this.writeAttendees(item, olditem); flags |= this.writeRecurrence(item, olditem); flags |= this.writeProperties(item, olditem); flags |= this.writeAttachments(item, olditem); ...
if (o[p] instanceof RegExp)
if (isinstance(o[p], RegExp))
function writeObjProps(o, indent) { function writeProp(name, val) { me._fileStream.write(indent + "\"" + ecmaEscape(name) + "\" " + val + me.lineEnd); }; for (var p in o) { switch (typeof o[p]) { ca...
if (o[p] instanceof Array)
if (isinstance(o[p], Array))
function writeObjProps(o, indent) { function writeProp(name, val) { me._fileStream.write(indent + "\"" + ecmaEscape(name) + "\" " + val + me.lineEnd); }; for (var p in o) { switch (typeof o[p]) { ca...
function clearPref(prefName) { try { client.prefBranch.clearUserPref (prefName); } catch (ex) { } };
function writePref(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 = eval(varName...
if (typeof defaultValue == "boolean") client.prefBranch.setBoolPref(prefName, prefValue); else if (typeof defaultValue == "number") client.prefBranch.setIntPref(prefName, prefValue); else if (defaultValue instanceof Array) client.prefBranch.setCharPref(prefName, prefValue.join("; "));
if (prefValue != defaultValue) { if (typeof defaultValue == "boolean") client.prefBranch.setBoolPref(prefName, prefValue); else if (typeof defaultValue == "number") client.prefBranch.setIntPref(prefName, prefValue); else if (defaultValue instanceof Array) client.prefBranch.setCharPref(prefName, prefValue.join("; ")); e...
function writePref(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 = eval(varName...
client.prefBranch.setCharPref(prefName, prefValue);
{ clearPref(prefName); }
function writePref(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 = eval(varName...
client.prefBranch.setBoolPref (prefName, client.munger.entries[ary[1]].enabled);
entry = client.munger.entries[ary[1]]; if (entry.enabled != entry.enabledDefault) client.prefBranch.setBoolPref(prefName, entry.enabled); else clearPref (prefName);
function writePref(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 = eval(varName...
if (installLogWriter) installLogWriter.registryKeyValueSet(this.toString(), name);
writeStringValue: function(name, value) { this._key.writeStringValue(name, value); if (installLogWriter) installLogWriter.registryKeyValueSet(this.toString(), name); },
this.feed.folder.gettingNewMessages = true;
var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder); msgFolder.gettingNewMessages = true;
writeToFolder: function() { debug(this.identity + " writing to message folder" + this.feed.name + "\n"); var server = this.feed.server; this.mUnicodeConverter.charset = this.characterSet; // If the sender isn't a valid email address, quote it so it looks nicer. if (this.author && this.author.indexO...
this.feed.folder.gettingNewMessages = false;
msgFolder.gettingNewMessages = false;
writeToFolder: function() { debug(this.identity + " writing to message folder" + this.feed.name + "\n"); var server = this.feed.server; this.mUnicodeConverter.charset = this.characterSet; // If the sender isn't a valid email address, quote it so it looks nicer. if (this.author && this.author.indexO...
}
},
writeUseDocumentFonts: function () { var useDocumentFonts = document.getElementById("useDocumentFonts"); return useDocumentFonts.checked ? 1 : 0; }
if (col.id != "watches:col-0")
if (typeof col == "object") col = col.id; if (col != "watches:col-0")
function wv_cellprops (index, col, properties){ if (col.id != "watches:col-0") return null; var row = this.childData.locateChildByVisualRow(index); if (row) { if ("getProperties" in row) return row.getProperties (properties); if (row.property) return properties...
if ("value" in rec.parentRecord) cx.parentValue = rec.parentRecord.value; else cx.parentValue = null; cx.propertyName = rec.displayName;
function wv_getcx(cx){ cx.jsdValueList = new Array(); cx.indexList = new Array(); function recordContextGetter (cx, rec, i) { if (rec instanceof ValueRecord) { if (i == 0) { cx.jsdValue = rec.value; if (rec.parentRecord == console.views.wa...
["inspect", {visibleif: "isDOMIInstalled()", enabledif: "has('jsdValue') && " + "isDOMThing(cx.jsdValue.getWrappedValue())"}],
function wv_init(){ this.cmdary = [ ["watch-expr", cmdWatchExpr, CMD_CONSOLE], ["watch-exprd", cmdWatchExpr, CMD_CONSOLE], ["remove-watch", cmdUnwatch, CMD_CONSOLE], ["save-watches", cmdSaveWatches, CMD_CONSOLE], ["watch-pr...
checkedif: "ValueRecord.prototype.showECMAProps"}]
checkedif: "ValueRecord.prototype.showECMAProps"}], ["-"], ["save-watches"], ["restore-settings"]
function wv_init(){ this.cmdary = [ ["watch-expr", cmdWatchExpr, CMD_CONSOLE], ["watch-exprd", cmdWatchExpr, CMD_CONSOLE], ["remove-watch", cmdUnwatch, CMD_CONSOLE], ["watch-property", cmdWatchProperty, 0], ]; console.menuSpe...
xalan_elems = xalan_xml.getElementsByTagName("test"); xalan_length = xalan_elems.length;
xalan_elems = xalan_xml.documentElement; xalan_length = Math.floor(xalan_elems.childNodes.length/2);
function xalanIndexLoaded(e) { xalan_elems = xalan_xml.getElementsByTagName("test"); xalan_length = xalan_elems.length; return true;}
wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
function xpinstallEditPermissions(aDocShell){ var browser = gXPInstallObserver._getBrowser(aDocShell); if (browser) { var bundlePreferences = document.getElementById("bundle_preferences"); var webNav = aDocShell.QueryInterface(Components.interfaces.nsIWebNavigation); var params = { blockVisible : false, ...
this.scrollToRow(line - total / 2);
this.scrollToRow(line - (last - first + 1) / 2);
function xtv_ctrln (line){ var first = this.tree.getFirstVisibleRow(); var last = this.tree.getLastVisibleRow(); this.scrollToRow(line - total / 2);}
var ary = col.id.match (/:(.*)/);
if (typeof col == "object") col = col.id; var ary = col.match (/:(.*)/);
function xtv_getcelltxt (index, col){ var row = this.childData.locateChildByVisualRow (index); //ASSERT(row, "bogus row " + index); var ary = col.id.match (/:(.*)/); if (ary) col = ary[1]; if (row && row._colValues && col in row._colValues) return row._colValues[col]; else return ...
if ("needsResort" in this) { this.childData.resort(); delete this.needsResort;
if ("needsReSort" in this) { this.childData.reSort(); delete this.needsReSort;
function xtv_thaw (){ if (this.frozen == 0) { ASSERT (0, "not frozen"); return; } if (--this.frozen == 0 && "changeStart" in this) { this.childData.onVisualFootprintChanged(this.changeStart, this.changeAmount); } if ("needs...
this.resort(true); /* resort, don't invalidate. we're going to do
this.reSort(true); /* reSort, don't invalidate. we're going to do
function xtvr_appchild (children){ var idx = this.childData.length; var delta = 0; var len = children.length; for (var i = 0; i < len; ++i) { var child = children[i]; child.isHidden = false; child.parentRecord = this; this.childData.push(child); // this.childData[idx] ...
/* go right to the parent so we don't muck with our own visualFoorptint
/* go right to the parent so we don't muck with our own visualFootprint
function xtvr_hide (){ if (this.isHidden) return; /* get the row before hiding */ var row = this.calculateVisualRow(); this.invalidateCache(); this.isHidden = true; /* go right to the parent so we don't muck with our own visualFoorptint * record, we'll need it to be correct if we're ever un...
this.resort(true);
this.reSort(true);
function xtvr_open (){ if (this.isContainerOpen) return; if ("onPreOpen" in this) this.onPreOpen(); this.isContainerOpen = true; var delta = 0; for (var i = 0; i < this.childData.length; ++i) { if (!this.childData[i].isHidden) delta += this.childData[i].visualFootpr...
this.childData[i].resort(true);
this.childData[i].reSort(true);
function xtvr_resort (leafSort){ if (!("childData" in this) || this.childData.length < 1 || (this.childData[0].sortCompare == xtvr_sortcmp && !("sortColumn" in this._share) || this._share.sortDirection == 0)) { /* if we have no children, or we have the default sort compare and no * s...
dump ("xtvr: childIndex is read only, ignore attempt to write to it\n");
dd("xtvr: childIndex is read only, ignore attempt to write to it\n");
function xtvr_setChildIndex (){ dump ("xtvr: childIndex is read only, ignore attempt to write to it\n"); if (typeof getStackTrace == "function") dump (getStackTrace());}
dump (getStackTrace());
dd(getStackTrace());
function xtvr_setChildIndex (){ dump ("xtvr: childIndex is read only, ignore attempt to write to it\n"); if (typeof getStackTrace == "function") dump (getStackTrace());}
this.resort();
this.reSort();
function xtvr_setcol (colID, dir){ //dd ("setting sort column to " + colID); this._share.sortColumn = colID; this._share.sortDirection = (typeof dir == "undefined") ? 1 : dir; this.resort();}
imgEl.setAttribute("height", (parseInt(imgEl.offsetHeight)*(ratio/currentZoom))); frameDoc.getElementById("bgDiv").style.width = imgEl.getAttribute("width"); frameDoc.getElementById("bgDiv").style.height = imgEl.getAttribute("height");
bgDiv.style.width = imgEl.offsetWidth; bgDiv.style.height = imgEl.offsetHeight;
function zoom(direction, ratio){ dump('zoom called; ratio='+ratio+'\n'); if (direction == "in") ratio = currentZoom*2; else if (direction == "out") ratio = currentZoom/2; if (ratio > 4 || ratio < 1 || ratio == currentZoom) return; if (ratio == 1){ document.getElementById('Map:ZoomIn').setAttribute('dis...
imgEl.setAttribute("height", (parseInt(imgEl.offsetHeight)/(currentZoom/ratio))); frameDoc.getElementById("bgDiv").style.width = imgEl.getAttribute("width"); frameDoc.getElementById("bgDiv").style.height = imgEl.getAttribute("height");
bgDiv.style.width = imgEl.offsetWidth; bgDiv.style.height = imgEl.offsetHeight;
function zoom(direction, ratio){ dump('zoom called; ratio='+ratio+'\n'); if (direction == "in") ratio = currentZoom*2; else if (direction == "out") ratio = currentZoom/2; if (ratio > 4 || ratio < 1 || ratio == currentZoom) return; if (ratio == 1){ document.getElementById('Map:ZoomIn').setAttribute('dis...
this.events.forEach(function (e) { if (e instanceof Synthetic) dump(" " + e.title + "\n"); else dump(" " + e.item.title + " @ " + e.occurrenceStartDate + "\n"); });
dump("before: " + when.events.map(function (e) { return e.item.title; }).join(" ") + "\n");
this.events.forEach(function (e) { if (e instanceof Synthetic) dump(" " + e.title + "\n"); else dump(" " + e.item.title + " @ " + e.occurrenceStartDate + "\n"); });
me.mContentOutliner.outlinerBoxObject.view = me.mContentView;
me.mContentTree.treeBoxObject.view = me.mContentView;
window.setTimeout(function(me) { // prepare and attach the content DOM datasource me.mContentView = XPCU.createInstance(kDOMViewCID, "inIDOMView"); me.mContentView.removeFilterByType(Node.TEXT_NODE); me.mContentOutliner.outlinerBoxObject.view = me.mContentView; me.mContentInit = true; ...
if (this.mObservers.any(function(o) { return (o == aObserver); }))
if (this.mObservers.some(function(o) { return (o == aObserver); }))
if (this.mObservers.any(function(o) { return (o == aObserver); }))
setTimeout( function(browser) { browser.BrowserReloadSkipCache(); }, 0, browser );
setTimeout( function(browser) { browser.BrowserReloadSkipCache(); }, 10, browser );
setTimeout( function(browser) { browser.BrowserReloadSkipCache(); }, 0, browser );
.split("").filter(function (el) { return chars.indexOf(el) != -1; }).join("");
name = name.split("").filter(function (el) { return chars.indexOf(el) != -1; }).join("");
.split("").filter(function (el) { return chars.indexOf(el) != -1; }).join("");
function( subComp ) { try { var tzCal = getIcsService().createIcalComponent( "VCALENDAR" ); subComp = subComp.clone(); tzCal.addSubcomponent( subComp ); getIcsService().addTimezone( tzCal, "", "" ); tzids.push( subComp.getFirstProperty("TZID").value ); } catch (exc) { this_.log( "error: " + exc ); } } );
function( obj ) { try { obj[func].apply( obj, args ); } catch (exc) { Components.utils.reportError( exc ); } } );
function( subComp ) { try { var tzCal = getIcsService().createIcalComponent( "VCALENDAR" ); subComp = subComp.clone(); tzCal.addSubcomponent( subComp ); getIcsService...
function(items) { items.forEach(func) },
function() { if (listener) { if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, syncState.m_exc ); } else { this_.log( "firing SYNC succeeded." ); listener.onOperationComplete( this_.superCalendar, Components...
function(items) { items.forEach(func) },
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); if (bAdd) { this_.log( "new item: " + item.id ); if...
function() { if (listener) { if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, syncState.m_exc ); } else { this_.log( "firing SYNC succeeded." ); listener.onOperationComplete( this_.superCalendar, Components...
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || ...
function() { if (listener) { if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, syncState.m_exc ); } else { this_.log( "firing SYNC succeeded." ); listener.onOperationComplete( this_.superCalendar, Components...
function(items) { items.forEach(func) },
function() { if (listener) { if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAI...
function() {
function( exc ) {
function() { if (listener) { if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAI...
if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, syncState.m_exc ); } else { this_.log( "firing SYNC succeeded." ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_OK, SYNC, null, n...
listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc );
function() { if (listener) { if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAI...
},
this_.logError( exc ); } );
function() { if (listener) { if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAI...
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); if (bAdd) { this_.log( "new item: " + item.id ); if (destCal) { syncState.acquire(); destCal.addItem( item, addItemListener ); } if (calObs...
function( exc ) { if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); } this_.logError( exc ); } );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
function( exc ) {
function() {
function( exc ) { if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); } this_.logError( exc ); ...
listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc );
if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, syncState.m_exc ); } else { this_.log( "firing SYNC succeeded." ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_OK, SYNC, null, n...
function( exc ) { if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); } this_.logError( exc ); ...
this_.logError( exc ); } );
},
function( exc ) { if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); } this_.logError( exc ); ...
function( exc ) { if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); } this_.logError( exc );
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); if (bAdd) { this_.log( "new item: " + item.id, "syn...
function( exc ) { if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); } this_.logError( exc ); ...
undoCloseTabItem.addEventListener("command", function() { undoCloseTab(0); }, false);
histMenu.addEventListener("popupshowing", function() { HistoryMenu.populateUndoSubmenu(); }, false);
undoCloseTabItem.addEventListener("command", function() { undoCloseTab(0); }, false);
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); if (bAdd) { this_.log( "new item: " + item.id, "syn...
function( exc ) { if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); } this_.logError( exc );
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || ...
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) {
function( item ) {
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || ...
} );
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || ...
function( item ) {
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) {
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
} );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); if (bAdd) { this_.log( "new item: " + item.id,
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { if (modifiedItems.some( function(mid) { return (item.id == mid); } )) { this_.log( "skipping deletion of " + item.id, "syncChangesTo_resp()" ); return; } if (isParent(item)) { this_.log( "deleted item: " + item....
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
destCal.addItem( item, addItemListener );
destCal.deleteItem( item, deleteItemListener );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
calObserver.onAddItem( item );
calObserver.onDeleteItem( item );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
this_.log( "modified item: " + item.id,
var parent = item.parentItem.clone(); parent.recurrenceInfo.removeOccurrenceAt( item.recurrenceId ); this_.log( "modified parent: " + parent.id,
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
destCal.modifyItem( item, null, modifyItemListener );
destCal.modifyItem( parent, item, deleteItemListener );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
calObserver.onModifyItem( item, null );
calObserver.onModifyItem( parent, item );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
function(mid) { return (item.id == mid); } )) {
function( item ) { if (modifiedItems.some( function(mid) { return (item.id == mid); } )) { this_.log( "skipping deletion of " + item.id, "syncChangesTo_resp()" ); return; } if (isParent(item)) { this_.log( "deleted item: " + item.id, "syncChangesTo_resp()" ); if (destCal) { syncState.acquire(); destCal.deleteItem( it...
function(mid) { return (item.id == mid); } )) {
dump("before: " + when.events.map(function (e) { return e.item.title; }).join(" ") + "\n");
when.events = when.events.filter(function (e) { return !e.equals(item); });
dump("before: " + when.events.map(function (e) { return e.item.title; }).join(" ") + "\n");
setTimeout(function(aTabElt) { getBrowser().selectedTab = aTabElt; }, 0, getBrowser().addTab(url));
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url));
setTimeout(function(aTabElt) { getBrowser().selectedTab = aTabElt; }, 0, getBrowser().addTab(url));
gQuickFindTimeout = setTimeout(function() { if (gFindMode != FIND_NORMAL) closeFindBar(); }, gQuickFindTimeoutLength);
setTimeout(function() { if (gFindMode != FIND_NORMAL) closeFindBar(); },
gQuickFindTimeout = setTimeout(function() { if (gFindMode != FIND_NORMAL) closeFindBar(); }, gQuickFindTimeoutLength);
function(hostEntry) { return (hostEntry.m_host != this_.uri.hostPort); } );
function(x) { return x != observer; } );
function(hostEntry) { return (hostEntry.m_host != this_.uri.hostPort); } );
when.events = when.events.filter(function (e) { return !e.equals(item); });
dump("after: " + when.events.map(function (e) { return e.item.title; }).join(" ") + "\n");
when.events = when.events.filter(function (e) { return !e.equals(item); });
function(email) { if (emails.length > 0) emails += ";"; emails += encodeURIComponent(email); } );
function( wcapResponse ) { this_.adoptItem_resp( wcapResponse, item, listener ); } );
function(email) { if (emails.length > 0) emails += ";"; emails += encodeURIComponent(email); } );
this.loadTimer=setTimeout(function () {thisHack.onDragLoadTarget(targetToBeLoaded)}, this.springLoadedMenuDelay);
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation);
this.loadTimer=setTimeout(function () {thisHack.onDragLoadTarget(targetToBeLoaded)}, this.springLoadedMenuDelay);
if (obj.baselines) ds.baselines = obj.baselines;
function (obj) { if (!checkErrorReturn(obj)) return; var ds = new TimeValueDataSet(obj.results); ds.requestedFirstTime = startTime; ds.requestedLastTime = endTime; self.testData[testId] = ds; if (obj.annotations) ...
function( wcapResponse ) { this_.adoptItem_resp( wcapResponse, item, listener ); } );
function(email) { if (emails.length > 0) emails += ";"; emails += encodeURIComponent(email); } );
function( wcapResponse ) { this_.adoptItem_resp( wcapResponse, item, listener ); } );
dump("after: " + when.events.map(function (e) { return e.item.title; }).join(" ") + "\n");
[this.today, this.tomorrow, this.soon].forEach(function(when) { function compare(a, b) { return a.occurrenceStartDate.compare(b.occurrenceStartDate); } when.events.sort(compare); });
dump("after: " + when.events.map(function (e) { return e.item.title; }).join(" ") + "\n");
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data, wcapResponse );
function() { if (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId) { if (timedOutSessionId != null) { this_.m_sessionId = null; this_.log( "session timeout; prompting to reconnect." ); var prompt =getWindowWatcher().getNewPrompter(null); var bundle = getWcapBundle(); if (!prompt.confirm( bundle.GetSt...
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data, wcapResponse ); } catch (exc) { if (ex...
catch (exc) { if (exc == Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED) { this_.getSessionId( sessionId ); this_.issueRequest( url, issueFunc, dataConvFunc, receiverFunc ); return; } throw exc; } } catch (exc) { wcapResponse.exception = exc; } receiverFunc( wcapResponse ); } );
} );
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data, wcapResponse ); } catch (exc) { if (ex...
this_.adoptItem_resp( wcapResponse, item, listener );
this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener);
function( wcapResponse ) { this_.adoptItem_resp( wcapResponse, item, listener ); } );
function(cal) { cal.resetCalProps(); } );
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data ); } catch (exc) { if (testResultCode( exc, Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED)) { this_.getSessionId( sessionId ); this_.issueRequest( url, issueFunc, dataConvFunc, receiverFunc ); ret...
function(cal) { cal.resetCalProps(); } );
this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener);
this_.adoptItem_resp( wcapResponse, item, listener );
function( wcapResponse ) { this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener); } );
[this.today, this.tomorrow, this.soon].forEach(function(when) { function compare(a, b) { return a.occurrenceStartDate.compare(b.occurrenceStartDate); } when.events.sort(compare); });
this.periods.forEach(function (p) { p.events = []; });
[this.today, this.tomorrow, this.soon].forEach(function(when) { function compare(a, b) { return a.occurrenceStartDate.compare(b.occurrenceStartDate); } when.events.sort(compare); });
function( wcapResponse ) { if (receiverFunc) { receiverFunc( wcapResponse );
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data, wcapResponse ); } catch (exc) { if (exc == Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED) { this_.getSessionId( sessionId ); this_.issueRequest( url, issueFunc, dataConvFunc, receiverFunc ); retu...
function( wcapResponse ) { if (receiverFunc) { receiverFunc( wcapResponse ); } ret = wcapResponse.data; // may throw } );
this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener);
this_.deleteItem_resp( wcapResponse, item, listener );
function( wcapResponse ) { this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener); } );
wcapResponse.data = dataConvFunc( data, wcapResponse );
wcapResponse.data = dataConvFunc( data );
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data, wcapResponse ); } catch (exc) { if (te...
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data ); } catch (exc) { if (testResultCode( exc, Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED)) { this_.getSessionId( sessionId ); this_.issueRequest( url, issueFunc, dataConvFunc, receiverFunc ); ret...
function( wcapResponse ) { if (receiverFunc) { receiverFunc( wcapResponse );
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data ); } catch (exc) { if (testResultCode( ...
catch (exc) { wcapResponse.exception = exc; } receiverFunc( wcapResponse );
ret = wcapResponse.data;
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data ); } catch (exc) { if (testResultCode( ...
function (event) { BrowserSearch.onLinkAdded(event); },
setTimeout(function() { gURLBar.focus(); }, 0);
function (event) { BrowserSearch.onLinkAdded(event); },
this_.deleteItem_resp( wcapResponse, item, listener );
this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener);
function( wcapResponse ) { this_.deleteItem_resp( wcapResponse, item, listener ); } );
this.periods.forEach(function (p) { p.events = []; });
this.periods.forEach(function (when) { dump(when.title + ": " + when.start + " -> " + when.end + "\n"); });
this.periods.forEach(function (p) { p.events = []; });
function( wcapResponse ) { this_.deleteItem_resp( wcapResponse, item, listener ); } );
function(srcItems) { items = items.concat(srcItems) },
function( wcapResponse ) { this_.deleteItem_resp( wcapResponse, item, listener ); } );
function(srcItems) { items = items.concat(srcItems) },
function( wcapResponse ) { this_.deleteItem_resp( wcapResponse, item, listener ); } );
function(srcItems) { items = items.concat(srcItems) },
function(srcItems) { items = items.concat(srcItems) },
function( subComp ) { function patchTimezone( subComp, attr, xprop ) { var dt = subComp[attr]; if (dt != null) { if (LOG_LEVEL > 2) { this_.log( attr + " is " + dt ); } var tzid = subComp.getFirstProperty( xprop ); if (tzid != null) { subComp[attr] = dt.getInTimezone(tzid.value); if (LOG_LEVEL > 2) { this_.log( "patchi...
function(srcItems) { items = items.concat(srcItems) },
function( wcapResponse ) { this_.getItems_resp( wcapResponse, itemFilter, maxResult, rangeStart, rangeEnd, listener ); } );
function( subComp ) { function patchTimezone( subComp, attr, xprop ) { var dt = subComp[attr]; if (dt != null) { if (LOG_LEVEL > 2) { this_.log( attr + " is " + dt ); } var tzid = subComp.getFirstProperty( xprop ); if (tzid != null) { subComp[attr] = dt.getInTimezone(tzid.value); if (LOG_LEVEL > 2) { this_.log( "patchi...
function( wcapResponse ) { this_.getItems_resp( wcapResponse, itemFilter, maxResult, rangeStart, rangeEnd, listener ); } );
function() { if (listener != null) { if (syncState.hasAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, syncState.m_exc ); } else { this_.log( "firing SYNC succeeded." ); listener.onOperationComplete( this_.superCalendar, C...
function( wcapResponse ) { this_.getItems_resp( wcapResponse, itemFilter, maxResult, rangeStart, rangeEnd, listener ); } );
function() { if (listener != null) { if (syncState.hasAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_...
setTimeout(function() { self.asyncUpdateUI(); }, 0);
setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser);
setTimeout(function() { self.asyncUpdateUI(); }, 0);
setTimeout(function(loc, aloc) {
setTimeout(function(loc) {
setTimeout(function(loc, aloc) { gURLBar.value = ""; // hack for bug 249322 gURLBar.value = loc; SetPageProxyState("valid", aloc); }, 0, location, aLocation);
SetPageProxyState("valid", aloc); }, 0, location, aLocation);
SetPageProxyState("valid"); }, 0, location);
setTimeout(function(loc, aloc) { gURLBar.value = ""; // hack for bug 249322 gURLBar.value = loc; SetPageProxyState("valid", aloc); }, 0, location, aLocation);