rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
else if (window.location.href != getBrowserURL()) {
if (window.location.href != getBrowserURL()) {
function WebSearch(){ var searchBar = document.getElementById("searchbar"); if (searchBar && !searchBar.parentNode.parentNode.collapsed && !(window.getComputedStyle(searchBar.parentNode, null).display == "none")) { searchBar.select(); searchBar.focus(); } // XXX: If the search box is hidden, we should op...
var searchBar = document.getElementById("searchbar"); if (searchBar && !searchBar.parentNode.parentNode.collapsed && !(window.getComputedStyle(searchBar.parentNode, null).display == "none")) { searchBar.select(); searchBar.focus(); } else { openDialog("chrome: "chrome,dialog,resizable,modal"); }
function WebSearch(){ var searchBar = document.getElementById("searchbar"); if (searchBar && !searchBar.parentNode.parentNode.collapsed && !(window.getComputedStyle(searchBar.parentNode, null).display == "none")) { searchBar.select(); searchBar.focus(); } // XXX: If the search box is hidden, we should op...
dump("nsProxyAutoConfig.js: weekdayRange function deprecated or not implemented\n");
function weekdayRange(wd1, wd2, gmt) { return false;}
gCalendarWindow.setSelectedDate( newDate );
gCalendarWindow.setSelectedDate( newDate, false );
function weekEventItemClick( eventBox, event ){ //do this check, otherwise on double click you get into an infinite loop if( event.detail == 1 ) { gCalendarWindow.EventSelection.replaceSelection( eventBox.calendarEventDisplay.event ); var newDate = gCalendarWindow.getSelectedDate(); newDate.setDate...
if (event.button != 0) return;
function weekEventItemDoubleClick( eventBox, event ){ editEvent( eventBox.calendarEventDisplay.event ); if ( event ) { event.stopPropagation(); }}
for( i = 0; i < EventSelectionArray.length; i++ ) { gCalendarWindow.weekView.selectBoxForEvent( EventSelectionArray[i] ); }
if( EventSelectionArray.length > 0 ) { setTimeout( "gCalendarWindow.weekView.clearSelectedDate();", 1 ); var i = 0; for( i = 0; i < EventSelectionArray.length; i++ ) { gCalendarWindow.weekView.selectBoxForEvent( EventSelectionArray[i] ); } } else { gCalendarWindow.weekView.hiliteSelectedDate(); }
function WeekView( calendarWindow ){ // call super this.superConstructor( calendarWindow ); //set the time on the left hand side labels //need to do this in JavaScript to preserve formatting for( var i = 0; i < 24; i++ ) { /* ** FOR SOME REASON, THIS IS NOT WORKING FOR MIDNIGHT */ ...
deselectEventInUnifinder();
function weekViewHourClick( dayIndex, hourNumber, event ){ newDate = gHeaderDateItemArray[dayIndex].getAttribute( "date" ); gCalendarWindow.setSelectedDate( newDate ); gCalendarWindow.setSelectedHour( hourNumber );}
if (event.button != 0) return;
function weekViewHourDoubleClick( event ){ var startDate = gCalendarWindow.weekView.getNewEventDate(); newEvent( startDate );}
deselectEventInUnifinder();
function weekViewHourDoubleClick( dayIndex, hourNumber, event ){ newDate = gHeaderDateItemArray[dayIndex].getAttribute( "date" ); gCalendarWindow.setSelectedDate( newDate ); // change the date selection to the clicked hour gCalendarWindow.setSelectedHour( hourNumber ); var startDate = gCalendarWindow.we...
var msgBodyFrame = GetMsgBodyFrame();
function WhichElementHasFocus(){ var msgIdentityElement = GetMsgIdentityElement(); var msgAddressingWidgetTreeElement = GetMsgAddressingWidgetTreeElement(); var msgSubjectElement = GetMsgSubjectElement(); var msgAttachmentElement = GetMsgAttachmentElement(); var msgBodyFrame ...
if (top.document.commandDispatcher.focusedWindow == msgBodyFrame) return msgBodyFrame;
if (top.document.commandDispatcher.focusedWindow == content) return content;
function WhichElementHasFocus(){ var msgIdentityElement = GetMsgIdentityElement(); var msgAddressingWidgetTreeElement = GetMsgAddressingWidgetTreeElement(); var msgSubjectElement = GetMsgSubjectElement(); var msgAttachmentElement = GetMsgAttachmentElement(); var msgBodyFrame ...
var whichPane= "none"; currentNode = top.document.commandDispatcher.focusedElement;
var whichPane= null; var currentNode = top.document.commandDispatcher.focusedElement;
function WhichPaneHasFocus(){ var whichPane= "none"; currentNode = top.document.commandDispatcher.focusedElement; if(currentNode){ while(currentNode.parentNode!=null){ if(currentNode.getAttribute("id") == "threadTree" ){ whichPane="threadTree" } if(currentNode.getAttribute("id") == "folderTree"){ whichPane="...
if(currentNode){ while(currentNode.parentNode!=null){ if(currentNode.getAttribute("id") == "threadTree" ){ whichPane="threadTree" } if(currentNode.getAttribute("id") == "folderTree"){ whichPane="folderTree" } if(currentNode.getAttribute("id") == "messagepanebox"){ whichPane="messagepanebox" }
var threadTree = GetThreadTree(); var folderTree = GetFolderTree(); var messagePane = GetMessagePane(); while (currentNode) { if (currentNode === threadTree || currentNode === folderTree || currentNode === messagePane) return currentNode;
function WhichPaneHasFocus(){ var whichPane= "none"; currentNode = top.document.commandDispatcher.focusedElement; if(currentNode){ while(currentNode.parentNode!=null){ if(currentNode.getAttribute("id") == "threadTree" ){ whichPane="threadTree" } if(currentNode.getAttribute("id") == "folderTree"){ whichPane="...
} return whichPane
return null;
function WhichPaneHasFocus(){ var whichPane= "none"; currentNode = top.document.commandDispatcher.focusedElement; if(currentNode){ while(currentNode.parentNode!=null){ if(currentNode.getAttribute("id") == "threadTree" ){ whichPane="threadTree" } if(currentNode.getAttribute("id") == "folderTree"){ whichPane="...
var searchBox = GetSearchBox();
var searchBox = document.getElementById('search-container');
function WhichPaneHasFocus(){ var cardViewBox = GetCardViewBox(); var searchBox = GetSearchBox(); var dirTree = GetDirTree(); var currentNode = top.document.commandDispatcher.focusedElement; while (currentNode) { var nodeId = currentNode.getAttribute('id'); if(currentNode == gAbR...
else if (element instanceof Components.interfaces.nsIDOMWindow) document.commandDispatcher.focusedWindow = element;
function WindowFocusTimerCallback(element){ // This fuction is a redo of the fix for jag bug 91884 var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); if (window == ww.activeWindow) { element.focus(); } else { // set t...
hiddenWin.setTimeout(function wrapper(t, count) { t.doContent(contentType, preferred, request, contentHandler, count + 1); }, 250, this, count);
hiddenWin.setTimeout(function wrapper(count) { spawnChatZilla(uri, count + 1); }, 250, count);
hiddenWin.setTimeout(function wrapper(t, count) { t.doContent(contentType, preferred, request, contentHandler, count + 1); }, 250, this, count);
var nsISupportsString = Components.interfaces.nsISupportsString; var factory = Components.classes["@mozilla.org/supports-string;1"]; var wrapper = factory.createInstance(nsISupportsString);
var nsISupportsCString = Components.interfaces.nsISupportsCString; var factory = Components.classes["@mozilla.org/supports-cstring;1"]; var wrapper = factory.createInstance(nsISupportsCString);
function wrapString(str){ var nsISupportsString = Components.interfaces.nsISupportsString; var factory = Components.classes["@mozilla.org/supports-string;1"]; var wrapper = factory.createInstance(nsISupportsString); wrapper.data = str; return wrapper;}
function wrapToolbarItems()
function wrapToolbarItems(aStorePreviousSet)
function wrapToolbarItems(){ for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableToolbar(toolbar)) { // save off the current set for each toolbar in case the user hits cancel toolbar.setAttribute('previousset', toolbar.currentSet); for (var k = 0...
toolbar.setAttribute('previousset', toolbar.currentSet);
if (aStorePreviousSet) toolbar.setAttribute('previousset', toolbar.currentSet);
function wrapToolbarItems(){ for (var i = 0; i < gToolbox.childNodes.length; ++i) { var toolbar = getToolbarAt(i); if (isCustomizableToolbar(toolbar)) { // save off the current set for each toolbar in case the user hits cancel toolbar.setAttribute('previousset', toolbar.currentSet); for (var k = 0...
flags |= CAL_ITEM_FLAG_HAS_ATTENDEES;
writeAttendees: function (item, olditem) { // XXX how does this work for proxy stuffs? var attendees = item.getAttendees({}); if (attendees && attendees.length > 0) { flags |= CAL_ITEM_FLAG_HAS_ATTENDEES; for each (var att in attendees) { var ap = this.mInse...
if (item.isAllDay)
if (item.startDate.isDate)
writeEvent: function (item, olditem, flags) { var ip = this.mInsertEvent.params; this.setupItemBaseParams(item, olditem,ip); var tmp; tmp = item.getUnproxiedProperty("DTSTART"); //if (tmp instanceof kCalIDateTime) {} this.setDateParamHelper(ip, "event_start", tmp); t...
writeLineToLog( s + "</font></b></tt>" );
document.write( s + "</font></b></tt><br>" );
function writeFormattedResult( expect, actual, string, passed ) { var s = "<tt>"+ string ; s += "<b>" ; s += ( passed ) ? "<font color=#009900> &nbsp;" + PASSED : "<font color=#aa0000>&nbsp;" + FAILED + expect + "</tt>"; writeLineToLog( s + "</font></b></tt>" ); return passed;}
string = String(string); string = string.replace(/[<>&]/g, htmlesc);
function writeHeaderToLog( string ) { document.write( "<h2>" + string + "</h2>" );}
string = string.replace(/[<>&]/g, htmlesc);
function writeHeaderToLog( string ) { document.write( "<h2>" + string + "</h2>" );}
string = String(string); string = string.replace(/[<>&]/g, htmlesc);
function writeHeaderToLog( string ) { document.write( "<h2>" + string + "</h2>\n" );}
string = String(string);
function writeHeaderToLog( string ) { document.write( "<h2>" + string + "</h2>" );}
if (this.mInitializing) return;
writeICS: function () { var savedthis = this; var listener = { onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { // All events are returned. Now set up a channel and a // streamloader to upload. /...
dump(">>> WriteICS "+this.mUri.spec+"\n")
writeICS: function () { var savedthis = this; var listener = { onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { // All events are returned. Now set up a channel and a // streamloader to upload. /...
var i; for (i in this.unmappedComponents) { dump("Adding a "+this.unmappedComponents[i].componentType+"\n"); calComp.addSubcomponent(this.unmappedComponents[i]); } for (i in this.unmappedProperties) { dump("Adding "+this.unmappedProperties[i].propertyName+"\n"); calComp.addProperty(this.unmappedProperties[i]); }
writeICS: function () { var savedthis = this; var listener = { onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { // All events are returned. Now set up a channel and a // streamloader to upload. /...
this.makeBackup();
this.makeBackup(this.doWriteICS);
writeICS: function () { this.locked = true; if (!this.mUri) throw Components.results.NS_ERROR_FAILURE; // makeBackup will call doWriteICS this.makeBackup(); },
pref.setCharPref (rootNode + "newTabThreshold", client.NEW_TAB_THRESHOLD); pref.setCharPref (rootNode + "focusNewTab", client.FOCUS_NEW_TAB);
pref.setIntPref (rootNode + "newTabLimit", client.NEW_TAB_LIMIT); pref.setBoolPref (rootNode + "raiseNewTab", client.RAISE_NEW_TAB);
function writeIRCPrefs (rootNode){ const PREF_CTRID = "@mozilla.org/preferences-service;1"; const nsIPrefBranch = Components.interfaces.nsIPrefBranch; var pref = Components.classes[PREF_CTRID].getService(nsIPrefBranch); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode...
string = String(string); string = string.replace(/[<>&]/g, htmlesc);
function writeLineToLog( string ) { document.write( string + "<br>\n");}
string = string.replace(/[<>&]/g, htmlesc);
function writeLineToLog( string ) { document.write( string + "<br>\n");}
string = String(string); string = string.replace(/[<>&]/g, htmlesc); string = string.replace(/[<>&]/g, htmlesc);
function writeLineToLog( string ) { document.write( string + "<br>\n");}
case "null": writeProp(p, "null"); break;
case "object": if (o[p] == null) { writeProp(p, "null"); } else { var className = ""; if (o[p] instanceof Array) className = "<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...
case "undefined": writeProp(p, "undefined"); break; case "object": var className = ""; if (o[p] instanceof Array) className = "<Array> "; me._fileStream.write(indent + "START " + className + ecmaEscape(p) + me.lineEnd); writeObjProps(o[p], indent + " "); me._fileStream.write(indent + "END" + me.lineEnd);
me._fileStream.write(indent + "START " + className + ecmaEscape(p) + me.lineEnd); writeObjProps(o[p], indent + " "); me._fileStream.write(indent + "END" + me.lineEnd); }
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 (radio.value == "true" && !this._userAgreedToPhishingEULA()) {
if (radio.value == "true" && !this._userAgreedToPhishingEULA(provider.value)) {
writePhishChoice: function () { var radio = document.getElementById("checkPhishChoice"); // display a privacy policy if onload checking is being enabled if (radio.value == "true" && !this._userAgreedToPhishingEULA()) { radio.value = "false"; return false; } // don't override pref value re...
dump("mySample::writeValue => " + aPrefix + this.val + "\n");
debug("mySample::writeValue => " + aPrefix + this.val + "\n");
writeValue: function (aPrefix) { dump("mySample::writeValue => " + aPrefix + this.val + "\n"); },
this.mContentOutlinerBody = document.getElementById("olbContent");
function XBLBindings(){ this.mURL = window.location; this.mObsMan = new ObserverManager(this); this.mDOMUtils = XPCU.createInstance("@mozilla.org/inspector/dom-utils;1", "inIDOMUtils"); this.mContentOutliner = document.getElementById("olContent"); this.mContentOutlinerBody = document.getElementById("olbContent"); ...
this.acceptNode = function(aDocument)
this.acceptNode = function(aNode)
function XLinkFilter() { this.acceptNode = function(aDocument) { return (aDocument.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; } }
return (aDocument.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
return (aNode.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
function XLinkFilter() { this.acceptNode = function(aDocument) { return (aDocument.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; } }
function XMLWriter() { this.data = '<?xml version="1.0" encoding="ISO-8859-1"?>';
function XMLWriter(encoding) { if (!encoding) encoding = "UTF-8"; this.data = '<?xml version="1.0" encoding="' + encoding + '"?>';
function XMLWriter() { // We assume for now that all data is already in ISO-8859-1. this.data = '<?xml version="1.0" encoding="ISO-8859-1"?>';}
for ( var bit = 0; bit < bs.length; bit++ ) { if ( (bs.charAt(bit) == "1" && ba.charAt(bit) == "0") || (bs.charAt(bit) == "0" && ba.charAt(bit) == "1") ) { result += "1"; } else { result += "0"; }
for ( var bit = 0; bit < bs.length; bit++ ) { if ( (bs.charAt(bit) == "1" && ba.charAt(bit) == "0") || (bs.charAt(bit) == "0" && ba.charAt(bit) == "1") ) { result += "1"; } else { result += "0";
function Xor( s, a ) { s = ToInt32( s ); a = ToInt32( a ); var bs = ToInt32BitString( s ); var ba = ToInt32BitString( a ); var result = ""; for ( var bit = 0; bit < bs.length; bit++ ) { if ( (bs.charAt(bit) == "1" && ba.charAt(bit) == "0") || (bs.charAt(bit) == "0" && ba.charAt(bit)...
var extensionsStrings = document.getElementById("extensionsStrings"); this._statusFormatKBMB = extensionsStrings.getString("statusFormatKBMB"); this._statusFormatKBKB = extensionsStrings.getString("statusFormatKBKB"); this._statusFormatMBMB = extensionsStrings.getString("statusFormatMBMB");
this._statusFormatKBMB = getExtensionString("statusFormatKBMB"); this._statusFormatKBKB = getExtensionString("statusFormatKBKB"); this._statusFormatMBMB = getExtensionString("statusFormatMBMB");
function XPInstallDownloadManager(){ var extensionsStrings = document.getElementById("extensionsStrings"); this._statusFormatKBMB = extensionsStrings.getString("statusFormatKBMB"); this._statusFormatKBKB = extensionsStrings.getString("statusFormatKBKB"); this._statusFormatMBMB = extensionsStrings.getString("stat...
windowTitle : bundlePreferences.getString("installpermissionstitle"), introText : bundlePreferences.getString("installpermissionstext") };
windowTitle : bundlePreferences.getString("addonspermissionstitle"), introText : bundlePreferences.getString("addonspermissionstext") };
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, ...
return false;
return;
function XXXsetSourceFunctionMarks (url){ source = console._sources[url]; scriptArray = console._scripts[url]; if (!source || !scriptArray) { dd ("Can't set function marks for " + url); return false; } for (var i = 0; i < scriptArray.length; ++i) { /* the only scripts w...
this.mImgZoom.setAttribute("style", "min-width: " + w + "px; min-height: " + h + "px;");
this.mImgZoom.setAttribute("width", w); this.mImgZoom.setAttribute("height", h);
zoom: function(aScale) { var s = parseInt(aScale); this.mZoomScale = s; var w = this.mBitmap.width * s; var h = this.mBitmap.height * s; this.mImgZoom.setAttribute("style", "min-width: " + w + "px; min-height: " + h + "px;"); this.mOutlinesReady = false; if (this.showOutlines || this.fillOut...
function(a1, a2, a3) { eventController.createEventBoxInternal(a1, a2, a3); } );
function(a1, a2, a3) { eventController.addToDisplayList(a1, a2, a3); } );
function(a1, a2, a3) { eventController.createEventBoxInternal(a1, a2, a3); } );
gHighlightTimeout = setTimeout(function() { toggleHighlight(false); toggleHighlight(true); }, 500);
setTimeout(function() { gFindBar.toggleHighlight(false); gFindBar.toggleHighlight(true); }, 500);
gHighlightTimeout = setTimeout(function() { toggleHighlight(false); toggleHighlight(true); }, 500);
this.watch('x', function(){throw 'yikes'});
o.watch('x', function(){throw 'yikes'});
this.watch('x', function(){throw 'yikes'});
if (a.name < b.name) return -1; if (a.name > b.name) return 1; return 0;
return a.name.localeCompare(b.name);
this._availableLanguagesList.sort(function (a, b) { if (a.name < b.name) return -1; if (a.name > b.name) return 1; return 0; });
gBrowser.addEventListener("load", function(evt) { setTimeout(loadEventHandlers, 0, evt); }, true);
gBrowser.addEventListener("PageShow", function(evt) { setTimeout(pageShowEventHandlers, 0, evt); }, true);
gBrowser.addEventListener("load", function(evt) { setTimeout(loadEventHandlers, 0, evt); }, true);
G_Map.prototype.__defineGetter__('size', function() { return this.size_;
G_Map.prototype.__defineGetter__('count', function() { return this.count_;
G_Map.prototype.__defineGetter__('size', function() { return this.size_;});
this.requestTimeout = setTimeout(function (o){ o.abort(); }, this.parent.requestTimeout, this.owner);
this.requestTimeout = setTimeout(function (o){ o.abort(); },
this.requestTimeout = setTimeout(function (o){ o.abort(); }, this.parent.requestTimeout, this.owner);
setTimeout(function () { updatePageStyles(); }, 0);
setTimeout(function(loc) { gURLBar.value = ""; gURLBar.value = loc; SetPageProxyState("valid"); }, 0, location);
setTimeout(function () { updatePageStyles(); }, 0);
wcapResponse, syncState, iListener,
wcapResponse, syncState, listener,
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, iListener, function( item ) { this_.log( "new item: " + item.id ); if (destCal) { ...
syncState.acquire(); this_.log( "adding " + item.id ); destCal.addItem( item, addItemListener );
this_.log( "new item: " + item.id ); if (destCal) { syncState.acquire(); destCal.addItem( item, addItemListener ); } if (calObserver) calObserver.onAddItem( item );
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, iListener, function( item ) { syncState.acquire(); this_.log( "adding " + item.id ); ...
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
setTimeout(function () { updatePageLivemarks(); }, 0);
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
syncState.acquire(); this_.log( "adding " + item.id ); destCal.addItem( item, addItemListener );
this_.log( "new item: " + item.id ); if (destCal) { syncState.acquire(); destCal.addItem( item, addItemListener ); } if (calObserver) calObserver.onAddItem( item );
function( item ) { syncState.acquire(); this_.log( "adding " + item.id ); // xxx todo: verify whether exceptions have been // written destCal.addItem( ...
syncState.acquire();
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, iListener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null ||...
this_.log( "adding " + item.id ); destCal.addItem( item, addItemListener );
this_.log( "new item: " + item.id ); if (destCal) { syncState.acquire(); destCal.addItem( item, addItemListener ); } if (calObserver) calObserver.onAddItem( item );
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, iListener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null ||...
this_.log( "modifying " + item.id ); destCal.modifyItem( item, null, modifyItemListener );
this_.log( "modified item: " + item.id ); if (destCal) { syncState.acquire(); destCal.modifyItem( item, null, modifyItemListener ); } if (calObserver) calObserver.onModifyItem( item, null );
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, iListener, function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null ||...
m.addEventListener("command", function() { for (var i = 0; i < undoItems.length; i++) undoCloseTab(); }, false);
undoCloseTabItem.addEventListener("command", function() { undoCloseTab(0); }, false);
m.addEventListener("command", function() { for (var i = 0; i < undoItems.length; i++) undoCloseTab(); }, false);
syncState.acquire();
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtCreated.compare(dtFrom) >= 0); syncState.acquire(); ...
this_.log( "adding " + item.id ); destCal.addItem( item, addItemListener );
this_.log( "new item: " + item.id ); if (destCal) { syncState.acquire(); destCal.addItem( item, addItemListener ); } if (calObserver) calObserver.onAddItem( item );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtCreated.compare(dtFrom) >= 0); syncState.acquire(); ...
this_.log( "modifying " + item.id ); destCal.modifyItem( item, null, modifyItemListener );
this_.log( "modified item: " + item.id ); if (destCal) { syncState.acquire(); destCal.modifyItem( item, null, modifyItemListener ); } if (calObserver) calObserver.onModifyItem( item, null );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtCreated.compare(dtFrom) >= 0); syncState.acquire(); ...
BigPerfGraph.setTimeRange (args[1], args[2]);
if (args[1] && args[2]) BigPerfGraph.setTimeRange (args[1], args[2]); else BigPerfGraph.setTimeRange (SmallPerfGraph.startTime, SmallPerfGraph.endTime);
SmallPerfGraph.onSelectionChanged.subscribe (function (type, args, obj) { log ("selchanged"); if (args[0] == "range") { BigPerfGraph.setTimeRange (args[1], ...
syncState.acquire();
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, iListener, function( item ) { // don't delete anything that has been touched // by lastmods: ...
this_.log( "deleting " + item.id ); destCal.deleteItem( item, deleteItemListener );
this_.log( "deleted item: " + item.id ); if (destCal) { syncState.acquire(); destCal.deleteItem( item, deleteItemListener ); } if (calObserver) calObserver.onDeleteItem( item );
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, iListener, function( item ) { // don't delete anything that has been touched // by lastmods: ...
this_.log( "modifying " + parent.id ); destCal.modifyItem( parent, item, deleteItemListener );
this_.log( "modified parent: " + parent.id ); if (destCal) { syncState.acquire(); destCal.modifyItem( parent, item, deleteItemListener ); } if (calObserver) calObserver.onModifyItem( parent, item );
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, iListener, function( item ) { // don't delete anything that has been touched // by lastmods: ...
syncState.acquire();
function( item ) { // don't delete anything that has been touched // by lastmods: for each ( var mid in modifiedItems ) { if (item.id == mid) { this_...
this_.log( "deleting " + item.id ); destCal.deleteItem( item, deleteItemListener );
this_.log( "deleted item: " + item.id ); if (destCal) { syncState.acquire(); destCal.deleteItem( item, deleteItemListener ); } if (calObserver) calObserver.onDeleteItem( item );
function( item ) { // don't delete anything that has been touched // by lastmods: for each ( var mid in modifiedItems ) { if (item.id == mid) { this_...
this_.log( "modifying " + parent.id ); destCal.modifyItem( parent, item, deleteItemListener );
this_.log( "modified parent: " + parent.id ); if (destCal) { syncState.acquire(); destCal.modifyItem( parent, item, deleteItemListener ); } if (calObserver) calObserver.onModifyItem( parent, item );
function( item ) { // don't delete anything that has been touched // by lastmods: for each ( var mid in modifiedItems ) { if (item.id == mid) { this_...
setTimeout(function() { if (gFindMode != FIND_NORMAL) closeFindBar(); },
setTimeout(function() { if (gFindBar.mFindMode != FIND_NORMAL) gFindBar.closeFindBar(); },
setTimeout(function() { if (gFindMode != FIND_NORMAL) closeFindBar(); },
setTimeout(function() { if (gCurrentDragOverMenu) gCurrentDragOverMenu.closePopup(); document.getElementById("bookmarks-button").firstChild.closePopup(); gDidOpen = false; }, 190);
setTimeout(function() { if (gCurrentDragOverMenu) gCurrentDragOverMenu.hidePopup(); document.getElementById("bookmarks-button").firstChild.hidePopup(); gDidOpen = false; }, 190);
setTimeout(function() { if (gCurrentDragOverMenu) gCurrentDragOverMenu.closePopup(); document.getElementById("bookmarks-button").firstChild.closePopup(); gDidOpen = false; }, 190);
setTimeout(function() { openDialog(chrome, "_blank", flags, url); }, 10);
setTimeout(function() { gURLBar.focus(); }, 0);
setTimeout(function() { openDialog(chrome, "_blank", flags, url); }, 10);
this_.adoptItem_resp( wcapResponse, iListener );
this_.adoptItem_resp( wcapResponse, listener );
function( wcapResponse ) { this_.adoptItem_resp( wcapResponse, iListener ); } );
this_.sync_req( requestToken, iListener );
this_.sync_req( requestToken, listener );
function( requestToken ) { this_.sync_req( requestToken, iListener ); } );
gcoder.getLatLng(aLoc, function (point) {
gcoder.getLatLng(q, function (point) {
gcoder.getLatLng(aLoc, function (point) { if (!point) { suggest(aLoc); } else { map.setZoom(10); map.panTo(point); map.removeOverlay(marker); marker = new GMarker(point, {draggable: true}); GEvent.addListener(marker, "dragend", function() { onDragEnd(); }); ...
suggest(aLoc);
suggest(q); document.getElementById('map-load').setAttribute('style', 'visibility: hidden');
gcoder.getLatLng(aLoc, function (point) { if (!point) { suggest(aLoc); } else { map.setZoom(10); map.panTo(point); map.removeOverlay(marker); marker = new GMarker(point, {draggable: true}); GEvent.addListener(marker, "dragend", function() { onDragEnd(); }); ...
map.removeOverlay(marker); marker = new GMarker(point, {draggable: true}); GEvent.addListener(marker, "dragend", function() { onDragEnd(); }); map.addOverlay(marker);
document.getElementById('map-load').setAttribute('style', 'visibility: hidden');
gcoder.getLatLng(aLoc, function (point) { if (!point) { suggest(aLoc); } else { map.setZoom(10); map.panTo(point); map.removeOverlay(marker); marker = new GMarker(point, {draggable: true}); GEvent.addListener(marker, "dragend", function() { onDragEnd(); }); ...
function( utf8Data ) {
function( data ) {
function( utf8Data ) { var wcapResponse = new WcapResponse(); try { var errno = dataConvFunc( utf8Data, wcapResponse ); if (errno == 1) { sessionId = this_.session.getSessionId( sessionId /*...
var errno = dataConvFunc( utf8Data, wcapResponse ); if (errno == 1) { sessionId = this_.session.getSessionId( sessionId ); if (sessionId != null) {
try { wcapResponse.data = dataConvFunc( data, wcapResponse ); } catch (exc) { if (exc == Components.interfaces. calIWcapErrors.WCAP_LOGIN_FAILED) { this_.session.getSessionId( sessionId );
function( utf8Data ) { var wcapResponse = new WcapResponse(); try { var errno = dataConvFunc( utf8Data, wcapResponse ); if (errno == 1) { sessionId = this_.session.getSessionId( sessionId /*...
url, issueFunc, dataConvFunc, receiverFunc, ignoredWcapErrors );
url, issueFunc, dataConvFunc, receiverFunc );
function( utf8Data ) { var wcapResponse = new WcapResponse(); try { var errno = dataConvFunc( utf8Data, wcapResponse ); if (errno == 1) { sessionId = this_.session.getSessionId( sessionId /*...
}
} throw exc;
function( utf8Data ) { var wcapResponse = new WcapResponse(); try { var errno = dataConvFunc( utf8Data, wcapResponse ); if (errno == 1) { sessionId = this_.session.getSessionId( sessionId /*...
else if (ignoredWcapErrors) { for each ( var err in ignoredWcapErrors ) { if (err == errno) { errno = 0; break; } } } checkWcapErrno( errno );
function( utf8Data ) { var wcapResponse = new WcapResponse(); try { var errno = dataConvFunc( utf8Data, wcapResponse ); if (errno == 1) { sessionId = this_.session.getSessionId( sessionId /*...
this_.logError( "issueRequest(): exception occured upon response\n" + utf8Data );
function( utf8Data ) { var wcapResponse = new WcapResponse(); try { var errno = dataConvFunc( utf8Data, wcapResponse ); if (errno == 1) { sessionId = this_.session.getSessionId( sessionId /*...
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url));
setTimeout(function() { openDialog(chrome, "_blank", flags, url); }, 10);
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url));
this_.modifyItem_resp( wcapResponse, oldItem, iListener );
this_.modifyItem_resp( wcapResponse, oldItem, listener );
function( wcapResponse ) { this_.modifyItem_resp( wcapResponse, oldItem, iListener ); } );
GEvent.addListener(marker, "dragend", function() { onDragEnd(); });
gcoder.getLatLng(aLoc, function (point) { if (!point) { suggest(aLoc); } else { map.setZoom(10); map.panTo(point); map.removeOverlay(marker); marker = new GMarker(point, {draggable: true}); GEvent.addListener(marker, "dragend", function() { onDragEnd(); }); map.addOverlay(marker); } });
GEvent.addListener(marker, "dragend", function() { onDragEnd(); });
var ad = a.startDate || a.entryDate; var bd = b.startDate || b.entryDate;
var ad = a.startDate || a.dueDate; var bd = b.startDate || b.dueDate;
[this.today, this.tomorrow, this.soon].forEach(function(when) { function compare(a, b) { var ad = a.startDate || a.entryDate; var bd = b.startDate || b.entryDate; return ad.compare(bd); } when.events.sort(compare); });
this_.modifyItem_resp( wcapResponse, oldItem, iListener );
this_.modifyItem_resp( wcapResponse, newItem, oldItem, iListener );
function( wcapResponse ) { this_.modifyItem_resp( wcapResponse, oldItem, iListener ); } );
ret = wcapResponse;
function( wcapResponse ) { ret = wcapResponse; if (receiverFunc) { receiverFunc( wcapResponse ); } }, ignoredWcapErrors );
}, ignoredWcapErrors );
ret = wcapResponse.data; } );
function( wcapResponse ) { ret = wcapResponse; if (receiverFunc) { receiverFunc( wcapResponse ); } }, ignoredWcapErrors );
this_.modifyItem_resp( wcapResponse, newItem, oldItem, iListener );
this_.modifyItem_resp( wcapResponse, oldItem, iListener );
function( wcapResponse ) { this_.modifyItem_resp( wcapResponse, newItem, oldItem, iListener ); } );
if (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId) {
if (!this_.m_bNoLoginsAnymore && (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId)) {
function() { if (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId) { if (timedOutSessionId != null) { this_.m_sessionId = null; this_.log( ...
this_.log( "session timeout; prompting to reconnect." );
this_.log( "session timeout; " + "prompting to reconnect." );
function() { if (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId) { if (timedOutSessionId != null) { this_.m_sessionId = null; this_.log( ...
setTimeout(function(u) { gURLBar.value = u; handleURLBarCommand(); }, 0, url);
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url));
setTimeout(function(u) { gURLBar.value = u; handleURLBarCommand(); }, 0, url);
this_.deleteItem_resp( wcapResponse, item, iListener );
this_.deleteItem_resp( wcapResponse, item, listener );
function( wcapResponse ) { this_.deleteItem_resp( wcapResponse, item, iListener ); } );