rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
debug("Hiding the sidebar") sidebar.setAttribute('hidden','true') sidebar_splitter.setAttribute('hidden','true') | debug("Hiding the sidebar"); sidebar.setAttribute('hidden','true'); sidebar_splitter.setAttribute('hidden','true'); | function SidebarShowHide() { var sidebar = document.getElementById('sidebar-box') var sidebar_splitter = document.getElementById('sidebar-splitter') var is_hidden = sidebar.getAttribute('hidden') if (is_hidden && is_hidden == "true") { debug("Showing the sidebar") sidebar.setAttribute('hidden','') sidebar_... |
sidebar_open_default_panel(100, 0); | sidebar_overlay_init(); | function SidebarShowHide() { var sidebarBox = document.getElementById('sidebar-box'); var sidebar_splitter = document.getElementById('sidebar-splitter'); var is_hidden = sidebarBox.getAttribute('hidden'); if (is_hidden && is_hidden == "true") { debug("Showing the sidebar"); sidebarBox.removeAttribute('hidden'... |
for (var i = 0; i <= flagsSize; i++) { flags[i] = true; } for (var i = 2; i <= flagsSize; i++) { if (flags[i]) { primeCount++; for (var k = i + i; k <= flagsSize; k = k + i) { flags[k] = false; } } } return primeCount; | for (var i = 0; i <= flagsSize; i++) { flags[i] = true; } for (i = 2; i <= flagsSize; i++) { if (flags[i]) { primeCount++; for (var k = i + i; k <= flagsSize; k = k + i) { flags[k] = false; } } } return primeCount; | function sieve(flags, flagsSize){ var primeCount = 0; for (var i = 0; i <= flagsSize; i++) { flags[i] = true; } for (var i = 2; i <= flagsSize; i++) { if (flags[i]) { primeCount++; for (var k = i + i; k <= flagsSize; k = k + i) { flags[k] = false; /* k is not prime */ } } } return primeCount;} |
gSignedStatusPanel.collapsed = false; | signedStatus: function(aNestingLevel, aSignatureStatus, aSignerCert) { if (aNestingLevel > 1) { // we are not interested return; } gSignatureStatus = aSignatureStatus; gSignerCert = aSignerCert; gSMIMEContainer.collapsed = false; gSignedUINode.collapsed = false; if (nsICMSMessageErrors... | |
function Signon(number, host, user) | function Signon(number, host, user, rawuser) | function Signon(number, host, user){ this.number = number; this.host = host; this.user = user;} |
this.rawuser = rawuser; | function Signon(number, host, user){ this.number = number; this.host = host; this.user = user;} | |
opener.refreshRemoteCalendarAndRunFunction( Event, Event.parent.server, "modifyEvent" ); | opener.saveItem( Event, Event.parent.server, "modifyEvent" ); | function snoozeAlarm( Event ){ var OuterBox = document.getElementById( Event.id ); var snoozeLength= OuterBox.getElementsByAttribute( "name", "alarm-length-field" )[0].value; snoozeLength= parseFloat( snoozeLength ); var SnoozeUnits = document.getElementsByAttribute( "name", "alarm-length-units" )[0].value; ... |
this._view._invalidateCache(0); | sort: function (aProperty) { var ascending = (aProperty == this._lastSortProperty) ? !this._lastSortAscending : true; // Sort the Non-Filtered Host Collections if (aProperty == "rawHost") { function sortByHost(a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); } this.... | |
if (!sortColumn) return; | function SortAndUpdateIndicators(sortColumn, sortDirection){ // XXX todo remove once #116341 is fixed if (!sortColumn) return; UpdateSortIndicators(sortColumn, sortDirection); if (gAbView) gAbView.sortBy(sortColumn, sortDirection);} | |
SaveSortSetting(sortColumn, sortDirection); | function SortAndUpdateIndicators(sortColumn, sortDirection){ // XXX todo remove once #116341 is fixed if (!sortColumn) return; UpdateSortIndicators(sortColumn, sortDirection); if (gAbView) gAbView.sortBy(sortColumn, sortDirection); SaveSortSetting(sortColumn, sortDirection);} | |
sortKey = "VisitCount"; | sortKey = "rdf:http: | function SortBy(sortKey){ // XXXBlake Welcome to the end of the world of Lame. // You can go no further. You are standing on the edge -- teetering, even. // Look on the bright side: you can rest assured that no code you see in the future // will even come close to the lameness of the code below. var sortDirection;... |
sortKey = "Name"; | sortKey = "rdf:http: | function SortBy(sortKey){ // XXXBlake Welcome to the end of the world of Lame. // You can go no further. You are standing on the edge -- teetering, even. // Look on the bright side: you can rest assured that no code you see in the future // will even come close to the lameness of the code below. var sortDirection;... |
sortKey = "Date"; | sortKey = "rdf:http: | function SortBy(sortKey){ // XXXBlake Welcome to the end of the world of Lame. // You can go no further. You are standing on the edge -- teetering, even. // Look on the bright side: you can rest assured that no code you see in the future // will even come close to the lameness of the code below. var sortDirection;... |
var col = document.getElementById(sortKey); | var col = document.getElementById("Name"); col.setAttribute("sort", sortKey); | function SortBy(sortKey){ // XXXBlake Welcome to the end of the world of Lame. // You can go no further. You are standing on the edge -- teetering, even. // Look on the bright side: you can rest assured that no code you see in the future // will even come close to the lameness of the code below. var sortDirection;... |
function SortColumn(node, sortKey, secondarySortKey) | function SortColumn(node, sortKey, secondarySortKey, direction) | function SortColumn(node, sortKey, secondarySortKey){ dump('In sortColumn\n'); var xulSortService = Components.classes["component://netscape/rdf/xul-sort-service"].getService(); if (xulSortService) { xulSortService = xulSortService.QueryInterface(Components.interfaces.nsIXULSortService); if (xulSortService) { // s... |
sortDirection = "ascending"; var currentDirection = node.getAttribute('sortDirection'); if (currentDirection == "ascending") sortDirection = "descending"; else if (currentDirection == "descending") sortDirection = "ascending"; else sortDirection = "ascending"; | var sortDirection; if(direction) sortDirection = direction; else { var currentDirection = node.getAttribute('sortDirection'); if (currentDirection == "ascending") sortDirection = "descending"; else if (currentDirection == "descending") sortDirection = "ascending"; else sortDirection = "ascending"; } | function SortColumn(node, sortKey, secondarySortKey){ dump('In sortColumn\n'); var xulSortService = Components.classes["component://netscape/rdf/xul-sort-service"].getService(); if (xulSortService) { xulSortService = xulSortService.QueryInterface(Components.interfaces.nsIXULSortService); if (xulSortService) { // s... |
node.setAttribute('rdf:resource2', secondarySortKey); | node.setAttributeNS(gRDFNamespace, 'resource2', secondarySortKey); | function SortColumn(node, sortKey, secondarySortKey, direction){ dump('In sortColumn\n'); var xulSortService = Components.classes["component://netscape/rdf/xul-sort-service"].getService(); if (xulSortService) { xulSortService = xulSortService.QueryInterface(Components.interfaces.nsIXULSortService); if (xulSortService... |
return SortColumn(node, sortKey, null); | return SortColumn(node, sortKey, null, null); | function SortFolderPane(column, sortKey){ var node = FindInSidebar(window, column); if(!node) { dump('Couldnt find sort column\n'); return false; } return SortColumn(node, sortKey, null);} |
return true; | function SortFolderPane(column, sortKey){ var node = FindInSidebar(window, column); if(!node) { dump('Couldnt find sort column\n'); return false; } SortColumn(node, sortKey, null, null); //Remove the sortActive attribute because we don't want this pane to have any //sort styles. node.setAttribute("sortActive", "false... | |
var node = document.getElementById(column); if (!node) return(false); | var node = document.getElementById(column); if (!node) return false; | function SortResultPane(column, sortKey){ var node = document.getElementById(column); if (!node) return(false); var sortDirection = "ascending"; var currentDirection = node.getAttribute('sortDirection'); if ( currentDirection == "ascending" ) sortDirection = "descending"; else sortDirection = "ascending"; U... |
var sortDirection = "ascending"; var currentDirection = node.getAttribute('sortDirection'); if ( currentDirection == "ascending" ) sortDirection = "descending"; else sortDirection = "ascending"; UpdateSortIndicator(column, sortDirection); | var sortDirection = "ascending"; var currentDirection = node.getAttribute("sortDirection"); | function SortResultPane(column, sortKey){ var node = document.getElementById(column); if (!node) return(false); var sortDirection = "ascending"; var currentDirection = node.getAttribute('sortDirection'); if ( currentDirection == "ascending" ) sortDirection = "descending"; else sortDirection = "ascending"; U... |
DoSort(column, sortKey, sortDirection); SaveSortSetting(column, sortKey, sortDirection); return(true); | if (currentDirection == "ascending") sortDirection = "descending"; else sortDirection = "ascending"; UpdateSortIndicator(column, sortDirection); DoSort(column, sortKey, sortDirection); SaveSortSetting(column, sortKey, sortDirection); return true; | function SortResultPane(column, sortKey){ var node = document.getElementById(column); if (!node) return(false); var sortDirection = "ascending"; var currentDirection = node.getAttribute('sortDirection'); if ( currentDirection == "ascending" ) sortDirection = "descending"; else sortDirection = "ascending"; U... |
return( ((TaskA.percentcomplete > TaskB.percentcomplete) ? 1 : -1) * modifier ); | return( ((TaskA.percent > TaskB.percent) ? 1 : -1) * modifier ); | function sortTasks( TaskA, TaskB ){ var modifier = 1; if (toDoTreeView.sortDirection == "descending") { modifier = -1; } switch(toDoTreeView.selectedColumn) { case "unifinder-todo-tree-col-completed": return( ((TaskA.completed.getTime() > TaskB.completed.getTime()) ? 1 : -1) * modifier ); ... |
function SortThreadPane(column, sortKey, secondarySortKey) | function SortThreadPane(column, sortKey, secondarySortKey, toggleCurrentDirection, direction) | function SortThreadPane(column, sortKey, secondarySortKey){ var node = document.getElementById(column); if(!node) return false; var selection = SaveThreadPaneSelection(); var beforeSortTime = new Date(); var result = SortColumn(node, sortKey, secondarySortKey); var afterSortTime = new Date(); var timeToSort = (afterSo... |
var result = SortColumn(node, sortKey, secondarySortKey); | var result = SortColumn(node, sortKey, secondarySortKey, direction); | function SortThreadPane(column, sortKey, secondarySortKey){ var node = document.getElementById(column); if(!node) return false; var selection = SaveThreadPaneSelection(); var beforeSortTime = new Date(); var result = SortColumn(node, sortKey, secondarySortKey); var afterSortTime = new Date(); var timeToSort = (afterSo... |
if ( dirTree && resultsTree ) { var ref = resultsTree.getAttribute('ref'); var folder = document.getElementById(ref); if ( folder ) { var column = folder.getAttribute('sortColumn'); var key = folder.getAttribute('sortKey'); var direction = folder.getAttribute('sortDirection'); if ( !column || !key ) { column = "NameCo... | if (dirTree && resultsTree) { var ref = resultsTree.getAttribute("ref"); var folder = document.getElementById(ref); if (folder) { var column = folder.getAttribute("sortColumn"); var key = folder.getAttribute("sortKey"); var direction = folder.getAttribute("sortDirection"); if (!column || !key) { column = "NameColumn";... | function SortToPreviousSettings(){ if ( dirTree && resultsTree ) { var ref = resultsTree.getAttribute('ref'); var folder = document.getElementById(ref); if ( folder ) { var column = folder.getAttribute('sortColumn'); var key = folder.getAttribute('sortKey'); var direction = folder.getAttribute('sortDirection... |
var selectedNumber = selections.length ? table[selections[0]].number : -1; | var selectedNumber = selections.length ? table[selections[0]].id : -1; | function SortTree(tree, view, table, column, lastSortColumn, lastSortAscending, updateSelection) { // remember which item was selected so we can restore it after the sort var selections = GetTreeSelections(tree); var selectedNumber = selections.length ? table[selections[0]].number : -1; // determine if sort is to b... |
if (table[s].number == selectedNumber) { | if (table[s].id == selectedNumber) { | function SortTree(tree, view, table, column, lastSortColumn, lastSortAscending, updateSelection) { // remember which item was selected so we can restore it after the sort var selections = GetTreeSelections(tree); var selectedNumber = selections.length ? table[selections[0]].number : -1; // determine if sort is to b... |
this.sourceText = new Array(); | this.lines = new Array(); | function SourceText (scriptContainer){ this.sourceText = new Array(); this.tabWidth = console.prefs["sourcetext.tab.width"]; this.fileName = scriptContainer.fileName; this.scriptContainer = scriptContainer; this.lineMap = new Array();} |
var sourceLines = sourceText.lines; | function sr_guessname (sourceText){ var targetLine = this.script.baseLineNumber; if (this.functionName == MSG_VAL_TLSCRIPT) { if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) this.functionName = MSD_VAL_TOSCRIPT; else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1... | |
if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) | if (sourceLines[targetLine].search(/\WsetTimeout\W/) != -1) | function sr_guessname (sourceText){ var targetLine = this.script.baseLineNumber; if (this.functionName == MSG_VAL_TLSCRIPT) { if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) this.functionName = MSD_VAL_TOSCRIPT; else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1... |
else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1) | else if (sourceLines[targetLine].search(/\WsetInterval\W/) != -1) | function sr_guessname (sourceText){ var targetLine = this.script.baseLineNumber; if (this.functionName == MSG_VAL_TLSCRIPT) { if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) this.functionName = MSD_VAL_TOSCRIPT; else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1... |
else if (sourceText[targetLine].search(/\Weval\W/) != -1) | else if (sourceLines[targetLine].search(/\Weval\W/) != -1) | function sr_guessname (sourceText){ var targetLine = this.script.baseLineNumber; if (this.functionName == MSG_VAL_TLSCRIPT) { if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) this.functionName = MSD_VAL_TOSCRIPT; else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1... |
String(sourceText[targetLine - 2]); | String(sourceLines[targetLine - 2]); | function sr_guessname (sourceText){ var targetLine = this.script.baseLineNumber; if (this.functionName == MSG_VAL_TLSCRIPT) { if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) this.functionName = MSD_VAL_TOSCRIPT; else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1... |
String(sourceText[targetLine - 3]) + String(sourceText[targetLine - 2]); | String(sourceLines[targetLine - 3]) + String(sourceLines[targetLine - 2]); | function sr_guessname (sourceText){ var targetLine = this.script.baseLineNumber; if (this.functionName == MSG_VAL_TLSCRIPT) { if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) this.functionName = MSD_VAL_TOSCRIPT; else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1... |
String(sourceText[targetLine - 4]) + String(sourceText[targetLine - 3]) + String(sourceText[targetLine - 2]); | String(sourceLines[targetLine - 4]) + String(sourceLines[targetLine - 3]) + String(sourceLines[targetLine - 2]); | function sr_guessname (sourceText){ var targetLine = this.script.baseLineNumber; if (this.functionName == MSG_VAL_TLSCRIPT) { if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) this.functionName = MSD_VAL_TOSCRIPT; else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1... |
scanText += String(sourceText[targetLine - 1]); | scanText += String(sourceLines[targetLine - 1]); | function sr_guessname (sourceText){ var targetLine = this.script.baseLineNumber; if (this.functionName == MSG_VAL_TLSCRIPT) { if (sourceText[targetLine].search(/\WsetTimeout\W/) != -1) this.functionName = MSD_VAL_TOSCRIPT; else if (sourceText[targetLine].search(/\WsetInterval\W/) != -1... |
strBundle = strBundleService.CreateBundle(path); | strBundle = strBundleService.createBundle(path); | function srGetStrBundle(path){ var strBundle = null; if (!strBundleService) { try { strBundleService = Components.classes[STRBUNDLE_SERV_CONTRACTID].getService(nsIStringBundleService); } catch (ex) { dump("\n--** strBundleService createInstance failed **--\n"); return null; } } strBundle = s... |
var msgtype = ("msgtype" in e) ? e.msgtype : MT_INFO; | var msgtype = (e.msgtype) ? e.msgtype : MT_INFO; var monospace; var mtname; if (msgtype[0] == "#") { monospace = true; mtname = msgtype.substr(1); } else { mtname = msgtype; } | function ss_hookDisplay (e){ var message = e.message; var msgtype = ("msgtype" in e) ? e.msgtype : MT_INFO; function setAttribs (obj, c, attrs) { if (attrs) { for (var a in attrs) obj.setAttribute (a, attrs[a]); } obj.setAttribute("class", c); ... |
obj.setAttribute("msg-type", msgtype); | obj.setAttribute("msg-type", mtname); if (monospace) obj.setAttribute("monospace", "true"); | function ss_hookDisplay (e){ var message = e.message; var msgtype = ("msgtype" in e) ? e.msgtype : MT_INFO; function setAttribs (obj, c, attrs) { if (attrs) { for (var a in attrs) obj.setAttribute (a, attrs[a]); } obj.setAttribute("class", c); ... |
msgData.appendChild(console.views.session.stringToDOM(message)); | msgData.appendChild(console.views.session.stringToDOM(message, msgtype)); | function ss_hookDisplay (e){ var message = e.message; var msgtype = ("msgtype" in e) ? e.msgtype : MT_INFO; function setAttribs (obj, c, attrs) { if (attrs) { for (var a in attrs) obj.setAttribute (a, attrs[a]); } obj.setAttribute("class", c); ... |
sessionView.outputTBody.appendChild(msgRow); | sessionView.outputTBody.appendChild(sessionView.adoptNode(msgRow)); | function ss_hookDisplay (e){ var message = e.message; var msgtype = (e.msgtype) ? e.msgtype : MT_INFO; var monospace; var mtname; if (msgtype[0] == "#") { monospace = true; mtname = msgtype.substr(1); } else { mtname = msgtype; } function setAttribs (obj... |
console.prefManager.addPref ("source2View.maxTabs", 5); | var prefs = [ ["source2View.maxTabs", 5], ["source2View.showCloseButton", true], ["source2View.middleClickClose", false] ]; console.prefManager.addPrefs(prefs); | function ss_init (){ console.prefManager.addPref ("source2View.maxTabs", 5); this.cmdary = [ ["close-source-tab", cmdCloseTab, CMD_CONSOLE], ["find-string", cmdFindString, CMD_CONSOLE], ["save-source-tab", cmdSaveTab, ... |
function ss_stringToDOM (message) | function ss_stringToDOM (message, msgtype) | function ss_stringToDOM (message){ var ary = message.split ("\n"); var span = htmlSpan(); for (var l in ary) { this.munger.munge(ary[l], span); span.appendChild (htmlBR()); } return span;} |
this.munger.munge(ary[l], span); | this.munger.munge(ary[l], span, msgtype); | function ss_stringToDOM (message){ var ary = message.split ("\n"); var span = htmlSpan(); for (var l in ary) { this.munger.munge(ary[l], span); span.appendChild (htmlBR()); } return span;} |
this.outputTable.appendChild (this.outputTBody); | this.adoptNode(this.outputTBody, this.outputDocument); this.outputTable.appendChild(this.outputTBody); | function ss_syncframe (){ var sessionView = this; function tryAgain () { //dd ("session view trying again..."); sessionView.syncDisplayFrame(); }; var doc = this.currentContent.ownerDocument; try { this.iframe = doc.getElementById("session-output-iframe"); if ("conte... |
var sourceRec = this; | var sourceText = this; | function st_initmap(){ var sourceRec = this; function setFlag (line, flag) { if (line in sourceRec.lineMap) sourceRec.lineMap[line] |= flag; else sourceRec.lineMap[line] = flag; } console.pushStatus (getMsg(MSN_STATUS_MARKING, this... |
if (line in sourceRec.lineMap) sourceRec.lineMap[line] |= flag; | if (line in sourceText.lineMap) sourceText.lineMap[line] |= flag; | function st_initmap(){ var sourceRec = this; function setFlag (line, flag) { if (line in sourceRec.lineMap) sourceRec.lineMap[line] |= flag; else sourceRec.lineMap[line] = flag; } console.pushStatus (getMsg(MSN_STATUS_MARKING, this... |
sourceRec.lineMap[line] = flag; | sourceText.lineMap[line] = flag; | function st_initmap(){ var sourceRec = this; function setFlag (line, flag) { if (line in sourceRec.lineMap) sourceRec.lineMap[line] |= flag; else sourceRec.lineMap[line] = flag; } console.pushStatus (getMsg(MSN_STATUS_MARKING, this... |
setFlag (j, SourceText.LINE_BREAKABLE); | setFlag (j, console.sourceView.LINE_BREAKABLE); | function st_initmap(){ var sourceRec = this; function setFlag (line, flag) { if (line in sourceRec.lineMap) sourceRec.lineMap[line] |= flag; else sourceRec.lineMap[line] = flag; } console.pushStatus (getMsg(MSN_STATUS_MARKING, this... |
if (console.scriptsView.childData == this) | if ("childData" in console.sourceView && console.sourceView.childData == this) | function st_invalidate (){ if (console.scriptsView.childData == this) { if (!("lastRowCount" in this) || this.lastRowCount != this.sourceText.length) { this.lastRowCount = this.sourceText.length; console.scriptsView.outliner.rowCountChanged(this.lastRowCount); ... |
this.lastRowCount != this.sourceText.length) | this.lastRowCount != this.lines.length) | function st_invalidate (){ if (console.scriptsView.childData == this) { if (!("lastRowCount" in this) || this.lastRowCount != this.sourceText.length) { this.lastRowCount = this.sourceText.length; console.scriptsView.outliner.rowCountChanged(this.lastRowCount); ... |
this.lastRowCount = this.sourceText.length; console.scriptsView.outliner.rowCountChanged(this.lastRowCount); | this.lastRowCount = this.lines.length; console.sourceView.outliner.rowCountChanged(0, this.lastRowCount); | function st_invalidate (){ if (console.scriptsView.childData == this) { if (!("lastRowCount" in this) || this.lastRowCount != this.sourceText.length) { this.lastRowCount = this.sourceText.length; console.scriptsView.outliner.rowCountChanged(this.lastRowCount); ... |
console.scriptsView.outliner.invalidate(); | console.sourceView.scrollTo(topRow, -1); console.sourceView.outliner.invalidate(); | function st_invalidate (){ if (console.scriptsView.childData == this) { if (!("lastRowCount" in this) || this.lastRowCount != this.sourceText.length) { this.lastRowCount = this.sourceText.length; console.scriptsView.outliner.rowCountChanged(this.lastRowCount); ... |
setBreakpoint (this.fileName, line + 1); | if (getBreakpoint(this.fileName, line)) { clearBreakpoint (this.fileName, line); } else { setBreakpoint (this.fileName, line); } console.sourceView.outliner.invalidateRow(line - 1); | function st_marginclick (e, line){ setBreakpoint (this.fileName, line + 1);} |
this.sourceText = new Array(); | this.lines = new Array(); | function st_reloadsrc (cb){ var sourceRec = this; function reloadCB (status) { sourceRec.invalidate(); cb(status); } this.isLoaded = false; this.sourceText = new Array(); this.invalidate(); this.loadSource(reloadCB);} |
gBrowser.mCurrentBrowser.engines = null; | startDocumentLoad : function(aRequest) { // It's okay to clear what the user typed when we start // loading a document. If the user types, this counter gets // set to zero, if the document load ends without an // onLocationChange, this counter gets decremented // (so we keep it while switching tabs af... | |
gMissingPluginInstaller.clearMissingPlugins(getBrowser().selectedTab); | startDocumentLoad : function(aRequest) { // It's okay to clear what the user typed when we start // loading a document. If the user types, this flag gets // set to false, if the document load ends without an // onLocationChange, this flag also gets set to false // (so we keep it while switching tabs a... | |
observerService.notifyObservers(_content, "StartDocumentLoad", urlStr); | observerService.notifyObservers(content, "StartDocumentLoad", urlStr); | startDocumentLoad : function(aRequest) { // It's okay to clear what the user typed when we start // loading a document. If the user types, this flag gets // set to false, if the document load ends without an // onLocationChange, this flag also gets set to false // (so we keep it while switching tabs a... |
aEvent.preventBubble(); | aEvent.stopPropagation(); | startDrag: function (aEvent, aDragDropObserver) { if (!("onDragStart" in aDragDropObserver)) return; const kDSIID = Components.interfaces.nsIDragService; var dragAction = { action: kDSIID.DRAGDROP_ACTION_COPY + kDSIID.DRAGDROP_ACTION_MOVE + kDSIID.DRAGDROP_ACTION_LINK }; var transferData... |
flavourList = aDragDropObserver.onDragStart(aEvent); | { try { flavourList = aDragDropObserver.onDragStart(aEvent); } catch (e) { return; } } | startDrag: function (aEvent, aDragDropObserver) { var flavourList = null; if (aDragDropObserver.onDragStart) flavourList = aDragDropObserver.onDragStart(aEvent); if (! flavourList || flavourList.length < 1) return; var trans = nsTransferable.set(flavourList); trans = trans ? ... |
var transArray = nsJSSupportsUtils.createSupportsArray(); | var transArray = Components.classes["@mozilla.org/supports-array;1"] .createInstance(Components.interfaces.nsISupportsArray); | startDrag: function (aEvent, aDragDropObserver) { if (!("onDragStart" in aDragDropObserver)) return; const kDSIID = Components.interfaces.nsIDragService; var dragAction = { action: kDSIID.DRAGDROP_ACTION_COPY + kDSIID.DRAGDROP_ACTION_MOVE + kDSIID.DRAGDROP_ACTION_LINK }; var transferData... |
aEvent.preventBubble(); | aEvent.stopPropagation(); | startDrag: function (aEvent, aDragDropObserver) { if (!("onDragStart" in aDragDropObserver)) return; const kDSIID = Components.interfaces.nsIDragService; var dragAction = { action: kDSIID.DRAGDROP_ACTION_COPY + kDSIID.DRAGDROP_ACTION_MOVE + kDSIID.DRAGDROP_ACTION_LINK }; var transferData... |
this.mDragService.invokeDragSession(aEvent.target, transArray, null, dragAction.action); | this.mDragService.invokeDragSession(aEvent.target, transArray, region, dragAction.action); | startDrag: function (aEvent, aDragDropObserver) { if (!("onDragStart" in aDragDropObserver)) return; const kDSIID = Components.interfaces.nsIDragService; var dragAction = { action: kDSIID.DRAGDROP_ACTION_COPY + kDSIID.DRAGDROP_ACTION_MOVE + kDSIID.DRAGDROP_ACTION_LINK }; var transferData... |
if (!this.startTimeoutID && !this.meteorsSpinning) | if (!this.startTimeoutID && !this.meteorsSpinning && window.MsgStatusFeedback) | startMeteors : function() { this.pendingStartRequests++; // if we don't already have a start meteor timeout pending // and the meteors aren't spinning, then kick off a start if (!this.startTimeoutID && !this.meteorsSpinning) this.startTimeoutID = setTimeout('window.MsgStatusFeedback._sta... |
document.getElementById("mailnewsStartPageUrl").disabled = !checked; | var startPageLocked = parent.hPrefWindow.getPrefIsLocked("mailnews.start_page.url"); document.getElementById("mailnewsStartPageUrl").disabled = !checked || startPageLocked; | function StartPageCheck(){ var checked = document.getElementById("mailnewsStartPageEnabled").checked; document.getElementById("mailnewsStartPageUrl").disabled = !checked;} |
return null; | function StartPublishing(){ var editor = GetCurrentEditor(); if (editor && gPublishData && gPublishData.docURI && gProgressDialog) { gRestoreDocumentSource = null; // Save backup document since nsIWebBrowserPersist changes image src urls // but we only need to do this if publishing images and other related ... | |
var suggestionURI = searchService.currentEngine.suggestionURI; this._checkForEngineSwitch(suggestionURI); | var engine = searchService.currentEngine; | startSearch: function(searchString, searchParam, previousResult, listener) { var searchService = Cc["@mozilla.org/browser/search-service;1"]. getService(Ci.nsIBrowserSearchService); // If there's an existing request, stop it. There is no smart filtering // here as there is when looking... |
if (!searchString || !suggestionURI || !this._okToRequest()) { | this._checkForEngineSwitch(engine); if (!searchString || !engine.supportsResponseType(SEARCH_RESPONSE_SUGGESTION_JSON) || !this._okToRequest()) { | startSearch: function(searchString, searchParam, previousResult, listener) { var searchService = Cc["@mozilla.org/browser/search-service;1"]. getService(Ci.nsIBrowserSearchService); // If there's an existing request, stop it. There is no smart filtering // here as there is when looking... |
var suggestionURL = suggestionURI.spec; | startSearch: function(searchString, searchParam, previousResult, listener) { var searchService = Cc["@mozilla.org/browser/search-service;1"]. getService(Ci.nsIBrowserSearchService); // If there's an existing request, stop it. There is no smart filtering // here as there is when looking... | |
this._request.open("GET", suggestionURL + encodeURIComponent(searchString), true); | var submission = engine.getSubmission(searchString, SEARCH_RESPONSE_SUGGESTION_JSON); this._suggestURI = submission.uri; var method = (submission.postData ? "POST" : "GET"); this._request.open(method, this._suggestURI.spec, true); | startSearch: function(searchString, searchParam, previousResult, listener) { var searchService = Cc["@mozilla.org/browser/search-service;1"]. getService(Ci.nsIBrowserSearchService); // If there's an existing request, stop it. There is no smart filtering // here as there is when looking... |
this._request.send(null); | this._request.send(submission.postData); | startSearch: function(searchString, searchParam, previousResult, listener) { var searchService = Cc["@mozilla.org/browser/search-service;1"]. getService(Ci.nsIBrowserSearchService); // If there's an existing request, stop it. There is no smart filtering // here as there is when looking... |
var me = view.getUser(view.parent.me.nick); | var me = view.getUser(view.parent.me.unicodeName); | function startTopicEdit(){ var me = view.getUser(view.parent.me.nick); if (!me || (!view.mode.publicTopic && !me.isOp && !me.isHalfOp) || !header["topicinput"].hasAttribute("hidden")) { return; } header["topicinput"].value = mainWindow.decodeColorCodes(view.topic); header["topicnodes... |
this.mStarted = true; | var observerSvc = Components.classes["@mozilla.org/observer-service;1"] .getService (Components.interfaces.nsIObserverService); observerSvc.addObserver(this, "profile-after-change", false); observerSvc.addObserver(this, "xpcom-shutdown", false); | startup: function() { if (this.mStarted) return; dump("Starting calendar alarm service\n"); this.mStarted = true; this.calendarManager = Components.classes["@mozilla.org/calendar/manager;1"].getService(Components.interfaces.calICalendarManager); var calendarManager = th... |
this.mStarted = true; | startup: function() { if (this.mStarted) return; dump("Starting calendar alarm service\n"); this.mStarted = true; this.calendarManager = Components.classes["@mozilla.org/calendar/manager;1"].getService(Components.interfaces.calICalendarManager); var calendarManager = th... | |
gSearchBox = document.getElementById("search-box"); | function Startup() { var bookmarksView = document.getElementById("bookmarks-view"); bookmarksView.treeBoxObject.selection.select(0);} | |
if (!isImages) { | if (dialogType == cookieType) { | function Startup() { // arguments passed to this routine: // cookieManager // cookieManagerFromIcon // imageManager // xpconnect to cookiemanager/permissionmanager interfaces cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookiemanager.QueryInterface(Comp... |
} else { | } else if (dialogType == imageType) { | function Startup() { // arguments passed to this routine: // cookieManager // cookieManagerFromIcon // imageManager // xpconnect to cookiemanager/permissionmanager interfaces cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService(); cookiemanager = cookiemanager.QueryInterface(Comp... |
dialog.collapseSpaces = document.getElementById("CollapseSpaces"); | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Create dialog object to store controls for easy access dialog = new Object; dialog.sepRadioGroup = document.getElementById("SepRadioGroup"); dialog.sepCharacterInput = document.getElementById("SepCharacterInput"); dial... | |
dialog.deleteSepCharacter.checked = true; | function Startup(){ if (!InitEditorShell()) return; doSetOKCancel(onOK, onCancel); // Create dialog object to store controls for easy access dialog = new Object; dialog.sepRadioGroup = document.getElementById("SepRadioGroup"); dialog.sepCharacterInput = document.getElementById("SepCharacterInput"); dial... | |
try { var alertService = Components.classes["@mozilla.org/alerts-service;1"].getService(Components.interfaces.nsIAlertsService); } catch(ex) { var newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert"); newMailNotificationAlertUI.setAttribute("hidden","true"); } | var newMailNotificationAlertUI = document.getElementById("newMailNotificationAlert"); newMailNotificationAlertUI.hidden = !("@mozilla.org/alerts-service;1" in Components.classes); | function Startup(){ PlaySoundCheck(); // if we can't get the alert service, hide the pref UI for using alerts to notify on new mail // see bug #158711 try { var alertService = Components.classes["@mozilla.org/alerts-service;1"].getService(Components.interfaces.nsIAlertsService); } catch(ex) { var newMailNot... |
theme = kPrefSvc.getComplexValue("general.skins.selectedSkin", | theme = gPrefSvc.getComplexValue("general.skins.selectedSkin", | function Startup(){ gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://browser/content/pref/pref-themes.xul"].userData; var list = document.getElementById( "skinsList" ); if ("loaded" in gData && "themeIndex" in gData) { list.selectedIndex = gData.themeIndex; return; } gData.loaded = true; pa... |
editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); | if (!InitEditorShell()) | function Startup(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } dump("EditoreditorShell found ... |
} | function Startup(){ // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("EditoreditorShell not found!!!\n"); window.close(); return; } dump("EditoreditorShell found ... | |
gNavigatorBundle = document.getElementById("bundle_navigator"); gBrandBundle = document.getElementById("bundle_brand"); | function Startup(){ window.XULBrowserWindow = new nsXULBrowserWindow(); window.buttonPrefListener = new nsButtonPrefListener(); var webNavigation; try { // Create the browser instance component. appCore = Components.classes["@mozilla.org/appshell/component/browser/instance;1"] .createIn... | |
dump("Doing Startup...\n"); editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("editorShell not found!!!\n"); window.close(); return; } | if (!InitEditorShell()) return; | function Startup(){ dump("Doing Startup...\n"); // get the editor shell from the parent window editorShell = window.opener.editorShell; editorShell = editorShell.QueryInterface(Components.interfaces.nsIEditorShell); if(!editorShell) { dump("editorShell not found!!!\n"); window.close(); return; } // ... |
parent.hPrefWindow.registerOKCallbackFunc( onOK ); | function Startup() { const prefbase = "system.windows.lock_ui."; // initialise preference component. // While the data is coming from the system registry, we use a set // of parallel preferences to indicate if the ui should be locked. if (!gPrefService) { gPrefService = Components.classes["@mozill... | |
if ( !settings ) { settings = parent.winHooks.settings = [ "isHandlingHTML", "isHandlingJPEG", "isHandlingGIF", "isHandlingPNG", "isHandlingMNG", "isHandlingBMP", "isHandlingICO", "isHandlingXML", "isHandlingXHTML", "isHandlingXUL", "isHandlingHTTP", "isHandlingHTTPS", "isHandlingFTP", "isHandlingCHROME", "isHandling... | function Startup() { const prefbase = "system.windows.lock_ui."; // initialise preference component. // While the data is coming from the system registry, we use a set // of parallel preferences to indicate if the ui should be locked. if (!gPrefService) { gPrefService = Components.classes["@mozill... | |
bookmarksView.view.selection.select(0); | bookmarksView.tree.view.selection.select(0); | function Startup() { var bookmarksView = document.getElementById("bookmarks-view"); bookmarksView.view.selection.select(0);} |
contentArea.addEventListener("load", getContentAreaFrameCount, true); contentArea.addEventListener("focus", contentAreaFrameFocus, true); | function Startup() { window.XULBrowserWindow = new nsXULBrowserWindow(); // TileWindow(); // Make sure window fits on screen initially //FitToScreen(); // Create the browser instance component. createBrowserInstance(); window.content.appCore= appCore; if (appCore == null) { // Give up... | |
if (!GetCurrentEditor()) | var editor = GetCurrentEditor(); if (!editor) | function Startup(){ var sendMailMessageMode = false; if (!GetCurrentEditor()) { window.close(); return; } // Get the spellChecker shell gSpellChecker = Components.classes['@mozilla.org/editor/editorspellchecker;1'].createInstance(Components.interfaces.nsIEditorSpellCheck); if (!gSpellChecker) { dump("S... |
gSpellChecker.InitSpellChecker(GetCurrentEditor(), enableSelectionChecking); | gSpellChecker.InitSpellChecker(editor, enableSelectionChecking); | function Startup(){ var sendMailMessageMode = false; if (!GetCurrentEditor()) { window.close(); return; } // Get the spellChecker shell gSpellChecker = Components.classes['@mozilla.org/editor/editorspellchecker;1'].createInstance(Components.interfaces.nsIEditorSpellCheck); if (!gSpellChecker) { dump("S... |
MisspelledWord = window.arguments[1]; dialog.ReplaceWordInput.value = MisspelledWord; PreviousReplaceWord = MisspelledWord; if (MisspelledWord.length > 0) { dialog.MisspelledWord.setAttribute("value", MisspelledWord); FillSuggestedList(); } | function Startup(){ if (!InitEditorShell()) return; // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Create dialog object to store controls for easy access di... | |
DoEnabling(); | SetWindowLocation(); | function Startup(){ if (!InitEditorShell()) return; // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Create dialog object to store controls for easy access di... |
SetTextfieldFocus(dialog.ReplaceWordInput); SetWindowLocation(); | NextWord(); firstTime = false; | function Startup(){ if (!InitEditorShell()) return; // Get the spellChecker shell spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (!spellChecker) { dump("SpellChecker not found!!!\n"); window.close(); } // Create dialog object to store controls for easy access di... |
var cookiesEnabled = document.getElementById("enableCookies").checked; updateBroadcaster(!cookiesEnabled); | function Startup() { var cookiesEnabled = document.getElementById("enableCookies").checked; updateBroadcaster(!cookiesEnabled); var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory); document.getElementById("history").setAttribute("cleard... | |
var cookieBehavior = document.getElementById("cookieBehavior").getAttribute("value"); var pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); try { pref.clearUserPref("network.cookie.enable"); cookieBehavior = 2; document.getElementById("cookieBehavior").... | function Startup() { var cookiesEnabled = document.getElementById("enableCookies").checked; updateBroadcaster(!cookiesEnabled); var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory); document.getElementById("history").setAttribute("cleard... | |
dialog.AdvancedRow.style.display = "none"; | if (advanced) { dialog.AdvancedRow.style.visibility = "visible"; } else { dialog.AdvancedRow.style.visibility = "collapse"; } | function Startup(){ dump("Doing Startup...\n"); // New metho: parameters passed via window.openDialog, which puts // arguments in the array "arguments" var editorName = window.arguments[0]; dump("Got editorAppCore called " + editorName + "\n"); // NEVER create an appcore here - we must find parent editor's ... |
var okButton = document.getElementById("insertCharsDlg").getButton("accept"); if (okButton) okButton.setAttribute("label", GetString("Insert")); | var insertButton = document.documentElement.getButton("accept"); if (insertButton) insertButton.setAttribute("label", GetString("Insert")); | function Startup(){ if (!InitEditorShell()) return; StartupLatin(); // Dialog is non-modal: // Change "Ok" to "Insert, change "Cancel" to "Close" var okButton = document.getElementById("insertCharsDlg").getButton("accept"); if (okButton) okButton.setAttribute("label", GetString("Insert")); var cancelButton... |
document.getElementById("bookmarknamegrid").setAttribute("hidden", "true"); document.getElementById("createinseparator").setAttribute("hidden", "true"); document.getElementById("nameseparator").setAttribute("hidden", "true"); sizeToContent(); | document.getElementById("bookmarknamegrid").hidden = true; document.getElementById("createinseparator").hidden = true; document.getElementById("nameseparator").hidden = true; | function Startup(){ gFld_Name = document.getElementById("name"); gFld_URL = document.getElementById("url"); gCB_AddGroup = document.getElementById("addgroup"); var bookmarkView = document.getElementById("bookmarks-view"); var shouldSetOKButton = true; var dialogElement = document.documentElement; if ("arguments"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.