rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
window._content.location.href= 'http:
server = this.pref.getLocalizedUnicharPref("wallet.Samples"); window._content.location.href = server + 'wallet2.html';
function WalletDialog( which ){ switch( which ) { case "signon": window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","SSViewer","modal=yes,chrome,resizable=no"); break; case "cookie": window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","CookieViewer","m...
window._content.location.href= 'http:
server = this.pref.getLocalizedUnicharPref("wallet.Samples"); window._content.location.href = server + 'wallet3.html';
function WalletDialog( which ){ switch( which ) { case "signon": window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","SSViewer","modal=yes,chrome,resizable=no"); break; case "cookie": window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","CookieViewer","m...
if (isNaN(rc)) throw Components.results.NS_ERROR_INVALID_ARG;
function wcapErrorToString( rc ){ if (rc == Components.interfaces.calIWcapErrors.WCAP_NO_ERRNO) return "No WCAP errno (missing X-NSCP-WCAP-ERRNO)."; var index = (rc - Components.interfaces.calIWcapErrors.WCAP_ERROR_BASE + 1); if (index >= 1 && index <= 108 && g_wcapErrorCodes[index * 2] != Co...
newDate = new Date( gHeaderDateItemArray[dayIndex].getAttribute( "date" ) );
var newDate = new Date( gHeaderDateItemArray[dayIndex].getAttribute( "date" ) );
function weekViewHourClick( event ){ if( event.detail == 1 ) { var dayIndex = event.target.getAttribute( "day" ); newDate = new Date( gHeaderDateItemArray[dayIndex].getAttribute( "date" ) ); newDate.setHours( event.target.getAttribute( "hour" ) ); gCalendarWindow.setSelectedDate( newDate ); }}
if(currentNode.getAttribute("id") == "messagepanebox"){ whichPane="messagepanebox" }
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 abResultsTree = GetAbResultsTree();
function WhichPaneHasFocus(){ var abResultsTree = GetAbResultsTree(); var cardViewBox = GetCardViewBox(); var searchBox = GetSearchBox(); var dirTree = GetDirTree(); var currentNode = top.document.commandDispatcher.focusedElement; while (currentNode) { var nodeId = currentNode....
if(currentNode == abResultsTree ||
if(currentNode == gAbResultsTree ||
function WhichPaneHasFocus(){ var abResultsTree = GetAbResultsTree(); var cardViewBox = GetCardViewBox(); var searchBox = GetSearchBox(); var dirTree = GetDirTree(); var currentNode = top.document.commandDispatcher.focusedElement; while (currentNode) { var nodeId = currentNode....
alert(uri.host + gUPMsg.value); document.documentElement.getButton("accept").focus();
if (gSiteBox.getRowCount() == 0) { window.close(); return; } if (selectedIndex > gSiteBox.getRowCount() - 1) selectedIndex -= 1; gSiteBox.selectedIndex = selectedIndex; document.documentElement.getButton("accept").focus()
function whitelistSite(){ var selectedItem = gSiteBox.selectedItems[0]; if (!selectedItem) return; var uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(Components.interfaces.nsIURI); uri.spec = selectedItem.label; permissionmanager.add(uri, nsIPermissionManager.POPUP_TYPE, nsIPermi...
this.GetDataForTag = WSM_GetDataForTag;
this.GetDataForTag = WSM_GetDataForTag; this.SetDataForTag = WSM_SetDataForTag;
function WidgetStateManager( frame_id, panelPrefix, panelSuffix ){ // data members /** * hash table for data values: * page1 => id1 => value1 * page1 => id2 => value2 * page2 => id1 => value1 * page2 => id2 => value2 **/ this.PageData = []; this.content_frame = ...
this.caption = MSG_VIEW_WINDOWS;
function winv_init (){ console.menuSpecs["context:windows"] = { getContext: this.getContext, items: [ ["find-url"], ["set-eval-obj", {type: "checkbox", checkedif: "has('jsdValue') && " + "cx.jsdValue.getWrappedValue()...
window.opener.getBrowser().hideMessage(window.opener.getBrowser().selectedBrowser, "top");
window.opener.getBrowser().hideMessage(null, "top");
function wizardFinish(){ // don't refresh if no plugins were found or installed if ((gPluginInstaller.mSuccessfullPluginInstallation > 0) && (gPluginInstaller.mPluginInfoArray.length != 0) && gPluginInstaller.mTab) { // clear the tab's plugin list only if we installed at least one plugin gPluginInstal...
var myWrap = window._content.document.body;
var myWrap = window.content.document.body;
function wrapLongLines(){ var myWrap = window._content.document.body; if (myWrap.className == '') myWrap.className = 'wrap'; else myWrap.className = ''; //since multiple viewsource windows are possible, another window could have //affected the pref, so instead of determining the new pref value via the current ...
aEl.setAttribute("data", aValue);
aEl.setAttribute("value", aValue);
write_menulist: function(aEl, aValue) { aEl.setAttribute("data", aValue); },
aEl.setAttribute("data", aValue);
aEl.setAttribute("value", aValue);
write_radiogroup: function(aEl, aValue) { aEl.setAttribute("data", aValue); },
var lastmodifed;
writeICS: function () { // Don't save right after loading. There are no changes anyway. if (this.loading) { this.loading = false; return; } this.locked = true; if (!this.mUri) throw Components.results.NS_ERROR_FAILURE; var savedthis = this; ...
if (this.loading) { this.loading = false; return; }
writeICS: function () { // Don't save right after loading. There are no changes anyway. if (this.loading) { this.loading = false; return; } this.locked = true; if (!this.mUri) throw Components.results.NS_ERROR_FAILURE; // makeBackup will cal...
for (var entry in client.munger.entries) pref.SetBoolPref (rootNode + "munger." + entry, client.munger.entries[entry].enabled);
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
pref.SetCharPref (rootNode + "style.default", client.DEFAULT_STYLE);
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
var pref = Components.classes["@mozilla.org/preferences;1"].createInstance();
pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
pref = pref.QueryInterface(Components.interfaces.nsIPref); pref.SetCharPref (rootNode + "nickname",
pref.setCharPref (rootNode + "nickname",
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
pref.SetCharPref (rootNode + "username",
pref.setCharPref (rootNode + "username",
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
pref.SetCharPref (rootNode + "desc", CIRCNetwork.prototype.INITIAL_DESC); pref.SetCharPref (rootNode + "nickCompleteStr", client.ADDRESSED_NICK_SEP); pref.SetCharPref (rootNode + "style.default", client.DEFAULT_STYLE); pref.SetCharPref (rootNode + "stalkWords",
pref.setCharPref (rootNode + "desc", CIRCNetwork.prototype.INITIAL_DESC); pref.setCharPref (rootNode + "nickCompleteStr", client.ADDRESSED_NICK_SEP); pref.setCharPref (rootNode + "style.default", client.DEFAULT_STYLE); pref.setCharPref (rootNode + "stalkWords",
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
pref.SetBoolPref (rootNode + "munger", client.munger.enabled); pref.SetBoolPref (rootNode + "munger.smileyText", client.smileyText);
pref.setBoolPref (rootNode + "munger", client.munger.enabled); pref.setBoolPref (rootNode + "munger.smileyText", client.smileyText);
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
pref.SetBoolPref (rootNode + "munger." + entry,
pref.setBoolPref (rootNode + "munger." + entry,
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
pref.SetBoolPref (rootNode + "notify.aggressive", client.FLASH_WINDOW);
pref.setBoolPref (rootNode + "notify.aggressive", client.FLASH_WINDOW);
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
pref.SetBoolPref (rootNode + "debug.tracer", h.enabled);
pref.setBoolPref (rootNode + "debug.tracer", h.enabled);
function writeIRCPrefs (rootNode){ var pref = Components.classes["@mozilla.org/preferences;1"].createInstance(); if(!pref) throw ("Can't find pref component."); if (!rootNode) rootNode = "extensions.irc."; if (!rootNode.match(/\.$/)) rootNode += "."; pref = pref.QueryInter...
break; #ifdef XP_WIN case "defaultSystemReaderListitem": this.element(PREF_SELECTED_APP).value = this.element("defaultSystemReaderFilefield").file; this.element(PREF_SELECTED_READER).value = "client"; break; #endif
writeSelectedFeedReader: function() { // Force update of the action pref. This is needed for the case in which // the user flipped from a reader to live bookmarks or vice-versa this.element(PREF_SELECTED_ACTION).value = this.onReadingMethodSyncToPreference(); var currentItem = this.element("readers")...
"cx.target.value.objectValue.constructorURL"}]
"cx.target.value.objectValue.constructorURL"}], ["-"], ["toggle-functions", {type: "checkbox", checkedif: "ValueRecord.prototype.showFunctions"}], ["toggle-ecmas", {type: "checkbox", checkedif: "ValueRecord.prototype.showECMAProps"}]
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...
this.caption = MSG_VIEW_WATCHES;
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...
var x = function() {return "Hello";};
var x; status = inSection(1); x = "Hello"; actual = [].concat(x).toString(); expect = x.toString(); addThis(); status = inSection(2); x = 999; actual = [].concat(x).toString(); expect = x.toString(); addThis(); status = inSection(3); x = /Hello/g; actual = [].concat(x).toString(); expect = x.toString(); addThis(); ...
var x = function() {return "Hello";};
return;
return "";
function xlateURL(key){ //dump("\n>> xlateURL(" + key + "): ds=" + ds + ", loaded=" + loaded); if (!ds || !loaded) { dump("\n xlateURL(): data source is not loaded! Try again later! \n"); return; } // get data var srcNode = RDF.GetResource(key); var titleTarget = ds.GetTarget(srcNode, titleArc, true); if (titleTarget...
return "";
function xlateURL(key){ //dump("\n>> xlateURL(" + key + "): ds=" + ds + ", loaded=" + loaded); if (!ds || !loaded) { dump("\n xlateURL(): data source is not loaded! Try again later! \n"); return; } // get data var srcNode = RDF.GetResource(key); var titleTarget = ds.GetTarget(srcNode, titleArc, true); if (titleTarget...
windowTitle : bundlePreferences.getString("addonspermissionstitle"),
windowTitle : bundlePreferences.getString("addons_permissions_title"),
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, ...
if (this.tree && this.tree.treeBody) this.tree.treeBody.removeAttribute("focused");
function xtv_rblur (event){ if (this.tree && this.tree.treeBody) this.tree.treeBody.removeAttribute("focused"); if ("onBlur" in this) this.onBlur(event);}
if (this.tree && this.tree.treeBody) this.tree.treeBody.setAttribute("focused", true)
function xtv_rfocus (event){ if (this.tree && this.tree.treeBody) this.tree.treeBody.setAttribute("focused", true) if ("onFocus" in this) this.onFocus(event);}
void("before: " + when.events.map(function (e) { return e.title; }).join(" ") + "\n");
when.events = when.events.filter(function (e) { if (e.id != item.id) return true; if (e.recurrenceId && item.recurrenceId && e.recurrenceId.compare(item.recurrenceId) != 0) return true; return false; });
void("before: " + when.events.map(function (e) { return e.title; }).join(" ") + "\n");
setTimeout( function(textbox) { textbox.focus(); }, 0, textbox );
setTimeout( function(textbox) { textbox.focus(); textbox.select(); }, 0, textbox );
setTimeout( function(textbox) { textbox.focus(); }, 0, textbox );
setTimeout(function(aTabElt) { getBrowser().selectedTab = aTabElt; }, 0, getBrowser().addTab(url));
window.setTimeout(function(arg) { for (var i in arg) gBrowser.addTab(arg[i]); }, 0, uriArray);
setTimeout(function(aTabElt) { getBrowser().selectedTab = aTabElt; }, 0, getBrowser().addTab(url));
view.pending = setTimeout(function(){view.showDetail(_e);}, 500);
lst.sort(function(a,b){return _t.cmp.apply(_t,[a,b])});
view.pending = setTimeout(function(){view.showDetail(_e);}, 500);
return function () { return arguments.callee.__parent__ == GLOBAL; };
return it.bindMethod("boundMethod", function () { return this; });
return function () { return arguments.callee.__parent__ == GLOBAL; };
return this.mRules ? this.mRules.Count() : 0;
return this.mRules ? this.mRules.Count() : this.mSheetRules ? this.mSheetRules.length : 0;
function() { return this.mRules ? this.mRules.Count() : 0;});
this.dialog.setTimeout( function(obj){obj.setCompleted()}, 100, this );
this.dialog.setTimeout( function(obj,wp,req,stat,msg){obj.onStatusChange(wp,req,stat,msg)},
this.dialog.setTimeout( function(obj){obj.setCompleted()}, 100, this );
me.mContentDS = XPCU.createInstance(kDOMDataSourceIID, "inIDOMDataSource"); me.mContentDS.removeFilterByType(3); me.mContentOutlinerBody.database.AddDataSource(me.mContentDS); var tb = new inOutlinerBuilder(me.mContentOutliner, kInspectorNSURI, "Child"); tb.rowFields = {"nodeType": "nodeType"}; tb.initialize(); tb.ad...
me.mContentView = XPCU.createInstance(kDOMViewCID, "inIDOMView"); me.mContentView.removeFilterByType(Node.TEXT_NODE); me.mContentOutliner.outlinerBoxObject.view = me.mContentView;
window.setTimeout(function(me) { // prepare and attach the content DOM datasource me.mContentDS = XPCU.createInstance(kDOMDataSourceIID, "inIDOMDataSource"); me.mContentDS.removeFilterByType(3); me.mContentOutlinerBody.database.AddDataSource(me.mContentDS); // initialize the outliner ...
return function () { return f.__call__(this, arguments, x); };
Fp.__defineProperty__('__call__', function (t, a, x) { a = Array.prototype.splice.call(a, 0, a.length); return this.apply(t, a); }, true, true, true);
return function () { return f.__call__(this, arguments, x); };
a.sort(function (a,b) { return (a.id < b.id) ? -1 : 1; });
function () { return this.length && this[this.length-1]; },
a.sort(function (a,b) { return (a.id < b.id) ? -1 : 1; });
this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) {
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) {
function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) { this_.log( "new item: " + item.id ); if (destCal) { ...
} ); } );
} else { 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, listener, function( item ) { this_.log( "new item: " + item.id ); if (destCal) { ...
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
function (event) { FeedHandler.onLinkAdded(event); },
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
m.addEventListener("command", function() { for (var i = 0; i < undoItems.length; i++) undoCloseTab(); }, false);
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
} );
} else { this_.log( "modified item: " + item.id ); if (destCal) { syncState.acquire(); destCal.modifyItem( item, null, modifyItemListener ); } if (calObserver) calObserver.onModifyItem( item, null ); } } );
function( item ) { this_.log( "new item: " + item.id ); if (destCal) { syncState.acquire(); // xxx todo: verify whether exceptions have been // ...
if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, syncState.m_exc ); } else {
if (!syncState.isAborted) {
function() { if (listener) { if (syncState.isAborted) { this_.log( "firing SYNC failed!" ); listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAI...
function (event) { FeedHandler.onLinkAdded(event); },
m.addEventListener("command", function() { for (var i = 0; i < undoItems.length; i++) undoCloseTab(); }, false);
function (event) { FeedHandler.onLinkAdded(event); },
this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc );
this_.superCalendar, Components.results.NS_OK, SYNC, null, dtFrom_ );
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 ); ...
var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == 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 (calObserver) calObserver.onAddItem( item );
for each ( var mid in modifiedItems ) { if (item.id == mid) { this_.log( "skipping deletion of " + item.id ); return;
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
else { this_.log( "modified item: " + item.id ); if (destCal) { syncState.acquire(); destCal.modifyItem( item, null, modifyItemListener ); } if (calObserver) calObserver.onModifyItem( item, null );
} if (isParent(item)) { this_.log( "deleted item: " + item.id ); if (destCal) { syncState.acquire(); destCal.deleteItem( item, deleteItemListener );
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
} );
if (calObserver) calObserver.onDeleteItem( item ); } else { var parent = item.parentItem.clone(); parent.recurrenceInfo.removeOccurrenceAt( item.recurrenceId ); this_.log( "modified parent: " + parent.id ); if (destCal) { syncState.acquire(); destCal.modifyItem( parent, item, deleteItemListener ); } if (calObserver) ...
function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); ...
histMenu.addEventListener("popupshowing", function() { HistoryMenu.populateUndoSubmenu(); }, false);
m.addEventListener("command", function(aEvent) { undoCloseTab(aEvent.originalTarget.getAttribute("value")); }, false);
histMenu.addEventListener("popupshowing", function() { HistoryMenu.populateUndoSubmenu(); }, false);
m.addEventListener("command", function(aEvent) { undoCloseTab(aEvent.originalTarget.getAttribute("value")); }, false);
m.addEventListener("command", function() { for (var i = 0; i < keys.length; i++) undoCloseTab(); }, false);
m.addEventListener("command", function(aEvent) { undoCloseTab(aEvent.originalTarget.getAttribute("value")); }, false);
var ad = a.startDate || a.dueDate; var bd = b.startDate || b.dueDate;
var ad = a.startDate || a.dueDate || a.entryDate; var bd = b.startDate || b.dueDate || b.entryDate;
[this.today, this.tomorrow, this.soon].forEach(function(when) { function compare(a, b) { var ad = a.startDate || a.dueDate; var bd = b.startDate || b.dueDate; return ad.compare(bd); } when.events.sort(compare); });
when.events = when.events.filter(function (e) { if (e.id != item.id) return true; if (e.recurrenceId && item.recurrenceId && e.recurrenceId.compare(item.recurrenceId) != 0) return true; return false; });
[this.today, this.tomorrow, this.soon].forEach(function(when) { function compare(a, b) { var ad = a.startDate || a.dueDate; var bd = b.startDate || b.dueDate; return ad.compare(bd); } when.events.sort(compare); });
when.events = when.events.filter(function (e) { if (e.id != item.id) return true; if (e.recurrenceId && item.recurrenceId && e.recurrenceId.compare(...
view._dv.beforeHideEvent.subscribe(function(){delete view._dv;}, null);
this.pending = setTimeout(function(){searchView.showDetail(_e);}, 500);
view._dv.beforeHideEvent.subscribe(function(){delete view._dv;}, null);
function () { return this.tokenizer.filename; });
a.sort(function (a,b) { return (a.id < b.id) ? -1 : 1; });
function () { return this.tokenizer.filename; });
void("after: " + when.events.map(function (e) { return e.title; }).join(" ") + "\n");
this.periods.forEach(function (p) { p.events = []; });
void("after: " + when.events.map(function (e) { return e.title; }).join(" ") + "\n");
var handler = function() {return function(){view.onCDReal(event.target)}};
this._dv.beforeHideEvent.subscribe(function(){delete this._dv;}, null);
var handler = function() {return function(){view.onCDReal(event.target)}};
function(cal) { cal.resetCalProps(); } );
function(str) { if (str.indexOf("BEGIN:VCALENDAR") >= 0) { this_.log(this_.sessionUri.spec + " ok again."); timer_.cancel(); this_.m_bNoLoginsAnymore = false; } });
function(cal) { cal.resetCalProps(); } );
this_.adoptItem_resp( wcapResponse, item, listener ); } );
this_.adoptItem_resp( wcapResponse, item, listener ); } ))
function( wcapResponse ) { this_.adoptItem_resp( wcapResponse, item, listener ); } );
setTimeout(function() { this.WebSearch(); }, 0);
function() { gProgressMeterPanel.collapsed = true; gProgressCollapseTimer = null; }, 100);
setTimeout(function() { this.WebSearch(); }, 0);
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(); } );
function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data ); } catch (exc) { if (testResultCode( ...
actual = 1; for(x in (function ([y]) { })() ) { } actual = 3;
actual = 1; try {for(x in (function ([y]) { })() ) { }}catch(ex){} actual = 3;
actual = 1; for(x in (function ([y]) { })() ) { } actual = 3;
this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener); } );
this_.modifyItem_resp( wcapResponse, newItem, oldItem, listener); } ))
function( wcapResponse ) { this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener); } );
function() { gProgressMeterPanel.collapsed = true; gProgressCollapseTimer = null; }, 100);
setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser);
function() { gProgressMeterPanel.collapsed = true; gProgressCollapseTimer = null; }, 100);
function( wcapResponse ) { if (receiverFunc) { receiverFunc( wcapResponse );
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 ); } ret = wcapResponse.data; // may throw } );
ret = wcapResponse.data;
catch (exc) { wcapResponse.exception = exc; } receiverFunc( wcapResponse );
function( wcapResponse ) { if (receiverFunc) { receiverFunc( wcapResponse ); } ret = wcapResponse.data; // may throw } );
setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser);
setTimeout(function(loc) { gURLBar.value = ""; gURLBar.value = loc; SetPageProxyState("valid"); }, 0, location);
setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser);
function(data) { if (!data || data == "") { throw new Components.Exception( "Login failed. Invalid session ID.", Components.interfaces.calIWcapErrors .WCAP_LOGIN_FAILED ); } return getDomParser().parseFromString(data, "text/xml"); },
function( wcapResponse ) { if (receiverFunc) { receiverFunc( wcapResponse ); } ret = wcapResponse.data; } );
function(data) { if (!data || data == "") { // assuming time-out throw new Components.Exception( "Login failed. Invalid session ID.", Components.interfaces.calIWcapErrors .WCAP_LOGI...
log ("got ds:", ds.firstTime, ds.lastTime, ds.data.length);
log ("got ds: (", module.id, ")", ds.firstTime, ds.lastTime, ds.data.length);
return function (testid, ds) { try { ds.color = module.color; if (baselineDataSet) ds = ds.createRelativeTo(baselineDataSet); log ("got ds:", ds.firstTime, ds.lastTime, ds.data.length); var avgd...
graphModule.average)
module.average)
return function (testid, ds) { try { ds.color = module.color; if (baselineDataSet) ds = ds.createRelativeTo(baselineDataSet); log ("got ds:", ds.firstTime, ds.lastTime, ds.data.length); var avgd...
log ("got avgds:", avgds.firstTime, avgds.lastTime, avgds.data.length);
log ("got avgds: (", module.id, ")", avgds.firstTime, avgds.lastTime, avgds.data.length);
return function (testid, ds) { try { ds.color = module.color; if (baselineDataSet) ds = ds.createRelativeTo(baselineDataSet); log ("got ds:", ds.firstTime, ds.lastTime, ds.data.length); var avgd...
setTimeout(function(loc) { gURLBar.value = ""; gURLBar.value = loc; SetPageProxyState("valid"); }, 0, location);
setTimeout(function() { self.asyncUpdateUI(); }, 0);
setTimeout(function(loc) { gURLBar.value = ""; // hack for bug 249322 gURLBar.value = loc; SetPageProxyState("valid"); }, 0, location);
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation);
setTimeout(function(loc, aloc) { gURLBar.value = ""; gURLBar.value = loc; SetPageProxyState("valid", aloc); }, 0, location, aLocation);
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation);
function(wcapResponse) { this_.searchForCalendars_resp( wcapResponse, listener, requestId); } );
function(data) { if (!data || data == "") { throw new Components.Exception( "Login failed. Invalid session ID.", Components.interfaces.calIWcapErrors .WCAP_LOGIN_FAILED ); } return getDomParser().parseFromString(data, "text/xml"); },
function(wcapResponse) { this_.searchForCalendars_resp( wcapResponse, listener, requestId); } );
setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser);
setTimeout(function() { self.asyncUpdateUI(); }, 0);
setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser);
if (listener != null) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); }
function( exc ) {// if (listener != null) {// listener.onOperationComplete(// this_.superCalendar,// Components.results.NS_ERROR_FAILURE,// SYNC, null, exc );// } this_....
tabpanels.addEventListener("DOMNodeInserted", function(aEvent) { _this.onTabAdd(aEvent.currentTarget.ownerDocument.defaultView, aEvent.target); }, false);
this._forEachBrowserWindow(function(aWindow) { if (aWindow != window) { aWindow.close(); } });
tabpanels.addEventListener("DOMNodeInserted", function(aEvent) { _this.onTabAdd(aEvent.currentTarget.ownerDocument.defaultView, aEvent.target); }, false);
setTimeout(function() { self.asyncUpdateUI(); }, 0);
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0);
setTimeout(function() { self.asyncUpdateUI(); }, 0);
setTimeout(function() { self.asyncUpdateUI(); }, 0);
function (event) { FeedHandler.onLinkAdded(event); },
setTimeout(function() { self.asyncUpdateUI(); }, 0);
REp.__call__ = function (t, a, x) { a = Array.prototype.splice.call(a, 0, a.length); return this.exec.apply(this, a); };
__call__: function (t, a, x) { var x2 = new ExecutionContext(FUNCTION_CODE); x2.thisObject = t || global; x2.caller = x; x2.callee = this; a.__defineProperty__('callee', this, false, false, true); var f = this.node; x2.scope = {object: new Activation(f, a), parent: this.scope}; ExecutionContext.current = x2; try { exe...
REp.__call__ = function (t, a, x) { a = Array.prototype.splice.call(a, 0, a.length); return this.exec.apply(this, a); };
Fp.__construct__ = function (a, x) { switch (a.length) { case 0: return new this(); case 1: return new this(a[0]); case 2: return new this(a[0], a[1]); case 3: return new this(a[0], a[1], a[2]); case 4: return new this(a[0], a[1], a[2], a[3]); case 5: return new this(a[0], a[1], a[2], a[3], a[4]); case 6: return new th...
__construct__: function (a, x) { var o = new Object; var p = this.prototype; if (isObject(p)) o.__proto__ = p; var v = this.__call__(o, a, x); if (isObject(v)) return v; return o; },
Fp.__construct__ = function (a, x) { switch (a.length) { case 0: return new this(); case 1: return new this(a[0]); case 2: return new this(a[0], a[1]); case 3: return new this(a[0], a[1], a[2]); case 4: return...
Fp.__hasInstance__ = function (v) { return v instanceof Function || v instanceof global.Function; };
__hasInstance__: function (v) { if (isPrimitive(v)) return false; var p = this.prototype; if (isPrimitive(p)) { throw new TypeError("'prototype' property is not an object", this.node.filename, this.node.lineno); } var o; while ((o = v.__proto__)) { if (o == p) return true; v = o; } return false; },
Fp.__hasInstance__ = function (v) { return v instanceof Function || v instanceof global.Function; };
function(valsOnly)
function(keysOnly)
iterable.__iterator__ = function(valsOnly) { var gen = function() { for (var i = 0; i < keys.length; i++) { if (valsOnly) yield vals[i]; else yield [keys[i], vals[i]]; } }; return gen(); };
if (valsOnly) yield vals[i];
if (keysOnly) yield keys[i];
iterable.__iterator__ = function(valsOnly) { var gen = function() { for (var i = 0; i < keys.length; i++) { if (valsOnly) yield vals[i]; else yield [keys[i], vals[i]]; } }; return gen(); };
if (selectElem.data == 'addr_newsgroups' || selectElem.data == 'addr_followup') inputElem.disableAutocomplete = true; else inputElem.disableAutocomplete = false;
if (prefs.GetBoolPref("mail.enable_autocomplete")) if (selectElem.data != 'addr_newsgroups' && selectElem.data != 'addr_followup') { inputElem.disableAutocomplete = false; return; } inputElem.disableAutocomplete = true;
function _awDisableAutoComplete(selectElem, inputElem){ if (selectElem.data == 'addr_newsgroups' || selectElem.data == 'addr_followup') inputElem.disableAutocomplete = true; else inputElem.disableAutocomplete = false;}
theNewRow = awGetTreeRow(top.awRow);
var theNewRow = awGetTreeRow(top.awRow);
function _awSetFocus(){ var tree = document.getElementById('addressListTree'); try { theNewRow = awGetTreeRow(top.awRow); //temporary patch for bug 26344// awFinishCopyNode(theNewRow); tree.ensureElementIsVisible(theNewRow); top.awInputElement.focus(); } catch(ex) { top.awFocusRetry ++; if (top.awFocusRetry < 8)...
SuppressComposeCommandUpdating(false);
function _awSetFocus(){ var listbox = document.getElementById('addressingWidget'); //try //{ var theNewRow = awGetListItem(top.awRow); //Warning: firstVisibleRow is zero base but top.awRow is one base! var firstVisibleRow = listbox.getIndexOfFirstVisibleRow(); var numOfVisibleRows = listbox.getNumberOfVi...
while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length);
function _awSetInputAndPopup(inputValue, popupValue, parentNode, templateNode){ // remove leading spaces while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); top.MAX_RECIPIENTS++; var newNode = templateNode.cloneNode(true); parentNode.appendChild(newNode); // we need to inse...
if ( input && input.length == 1 ) { input[0].setAttribute("value", inputValue); input[0].value = inputValue; input[0].setAttribute("id", "msgRecipient#" + top.MAX_RECIPIENTS); }
function _awSetInputAndPopup(inputValue, popupValue, parentNode, templateNode){ // remove leading spaces while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); top.MAX_RECIPIENTS++; var newNode = templateNode.cloneNode(true); parentNode.appendChild(newNode); // we need to inse...
if ( select && select.length == 1 ) { select[0].selectedItem = select[0].childNodes[0].childNodes[awGetSelectItemIndex(popupValue)]; select[0].setAttribute("id", "msgRecipientType#" + top.MAX_RECIPIENTS); if (input) _awDisableAutoComplete(select[0], input[0]); }
if (input && input.length == 1 && select && select.length == 1) awSetInputAndPopupValue(input[0], inputValue, select[0], popupValue, top.MAX_RECIPIENTS)
function _awSetInputAndPopup(inputValue, popupValue, parentNode, templateNode){ // remove leading spaces while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); top.MAX_RECIPIENTS++; var newNode = templateNode.cloneNode(true); parentNode.appendChild(newNode); // we need to inse...
const nsIImageLoadingContent = Components.interfaces.nsIImageLoadingContent; if (window.arguments[0] instanceof nsIImageLoadingContent) { var request = window.arguments[0].QueryInterface(nsIImageLoadingContent) .getRequest(nsIImageLoadingContent.CURRENT_REQUEST); if (!request) return false; } if (makeURI(window.argume...
_createImage: function () { var img = document.createElementNS(kXUL_NS, "image"); img.setAttribute("src", this._image.src); return img; },
const nsIImageLoadingContent = Components.interfaces.nsIImageLoadingContent; if (window.arguments[0] instanceof nsIImageLoadingContent) { var request = window.arguments[0].QueryInterface(nsIImageLoadingContent) .getRequest(nsIImageLoadingContent.CURRENT_REQUEST); if (!request) return false; } if (makeURI(window.argume...
img.setAttribute("src", imgURI.spec);
_createImage: function () { var img = document.createElementNS(kXUL_NS, "image"); const nsIImageLoadingContent = Components.interfaces.nsIImageLoadingContent; if (window.arguments[0] instanceof nsIImageLoadingContent) { var request = window.arguments[0].QueryInterface(nsIImageLoadingContent) ...