rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
function handleHover(e) { var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; while ( p && p != this ) p = p.parentNode; | while ( p && p != this ) p = p.parentNode; if ( p == this ) return false; return (e.type == "mouseover" ? f : g).apply(this, [e]); } | jQuery.prototype.hover = function(f,g) { // A private function for haandling mouse 'hovering' function handleHover(e) { // Check if mouse(over|out) are still within the same parent element var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; // Traverse up the tree while ( p && p != th... |
if ( p == this ) return false; return (e.type == "mouseover" ? f : g).apply(this, [e]); } return this.mouseover(handleHover).mouseout(handleHover); }; | return this.mouseover(handleHover).mouseout(handleHover); }, | jQuery.prototype.hover = function(f,g) { // A private function for haandling mouse 'hovering' function handleHover(e) { // Check if mouse(over|out) are still within the same parent element var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; // Traverse up the tree while ( p && p != th... |
while ( p && p != this ) p = p.parentNode; | while ( p && p != this ) try { p = p.parentNode } catch(e) { p = null; }; | hover: function(f,g) { // A private function for haandling mouse 'hovering' function handleHover(e) { // Check if mouse(over|out) are still within the same parent element var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; // Traverse up the tree while ( p && p != this ) p = ... |
function hrefAndLinkNodeForClickEvent(aParams) | function hrefAndLinkNodeForClickEvent(event) | function hrefAndLinkNodeForClickEvent(aParams) { var event = aParams.event; var target = event.target; var href = aParams.href; var linkNode = aParams.linkNode; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || ... |
var event = aParams.event; | function hrefAndLinkNodeForClickEvent(aParams) { var event = aParams.event; var target = event.target; var href = aParams.href; var linkNode = aParams.linkNode; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || ... | |
var href = aParams.href; var linkNode = aParams.linkNode; | var href = ""; var linkNode = null; | function hrefAndLinkNodeForClickEvent(aParams) { var event = aParams.event; var target = event.target; var href = aParams.href; var linkNode = aParams.linkNode; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || ... |
aParams.href = href; aParams.linkNode = linkNode; | return linkNode ? {href: href, linkNode: linkNode} : null; | function hrefAndLinkNodeForClickEvent(aParams) { var event = aParams.event; var target = event.target; var href = aParams.href; var linkNode = aParams.linkNode; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || ... |
return typeof h == 'undefined' && this.size() ? this.get(0).innerHTML : this.set( "innerHTML", h ); }, | return h == undefined && this.size() ? this.get(0).innerHTML : this.set( "innerHTML", h ); }, | html: function(h) { return typeof h == 'undefined' && this.size() ? this.get(0).innerHTML : this.set( "innerHTML", h ); }, |
return str.replace('&','&').replace('<','<').replace('>','>').replace('"','"').replace('+',' '); | return str.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/\+/g,' '); | function htmlEntities(str){ return str.replace('&','&').replace('<','<').replace('>','>').replace('"','"').replace('+',' ');} |
html += indent + "<" + node.GetTagName() | html += "\n" + indent + "<" + node.GetTagName() | function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ... |
html += "</" + node.GetTagName() + ">" | html += "\n" + indent + "</" + node.GetTagName() + ">" | function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ... |
jQuery.httpData = function(r,type) { var ct = r.getResponseHeader("content-type"); var xml = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; return xml ? r.responseXML : r.responseText; }; | httpData: function(r,type) { var ct = r.getResponseHeader("content-type"); var xml = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; return xml ? r.responseXML : r.responseText; }, | jQuery.httpData = function(r,type) { var ct = r.getResponseHeader("content-type"); var xml = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; return xml ? r.responseXML : r.responseText;}; |
if ( type == "script" ) eval.call( window, data ); | if ( type == "script" ) { if (window.execScript) window.execScript( data ); else window.setTimeout( data, 0 ); } | httpData: function(r,type) { var ct = r.getResponseHeader("content-type"); var data = !type && ct && ct.indexOf("xml") >= 0; data = type == "xml" || data ? r.responseXML : r.responseText; // If the type is "script", eval it if ( type == "script" ) eval.call( window, data ); // Get the JavaScript object, if JSON ... |
var data = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; data = data ? r.responseXML : r.responseText; | var data = !type && ct && ct.indexOf("xml") >= 0; data = type == "xml" || data ? r.responseXML : r.responseText; | httpData: function(r,type) { var ct = r.getResponseHeader("content-type"); var data = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; data = data ? r.responseXML : r.responseText; // If the type is "script", eval it if ( type == "script" ) eval.call( window, data ); return data; }, |
if ( type == "html" ) $("<div>").html(data).evalScripts(); | httpData: function(r,type) { var ct = r.getResponseHeader("content-type"); var data = !type && ct && ct.indexOf("xml") >= 0; data = type == "xml" || data ? r.responseXML : r.responseText; // If the type is "script", eval it if ( type == "script" ) eval.call( window, data ); // Get the JavaScript object, if JSON ... | |
var xml = ( !type || type == "xml" ) && r.getResponseHeader("content-type").indexOf("xml") >= 0; | var ct = r.getResponseHeader("content-type"); var xml = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; | jQuery.httpData = function(r,type) { var xml = ( !type || type == "xml" ) && r.getResponseHeader("content-type").indexOf("xml") >= 0; return xml ? r.responseXML : r.responseText;}; |
return r.getResponseHeader("content-type").indexOf("xml") > 0 || type == "xml" ? r.responseXML : r.responseText; | var xml = ( !type || type == "xml" ) && r.getResponseHeader("content-type").indexOf("xml") >= 0; return xml ? r.responseXML : r.responseText; | jQuery.httpData = function(r,type) { // Check the headers, or watch for a force override return r.getResponseHeader("content-type").indexOf("xml") > 0 || type == "xml" ? r.responseXML : r.responseText;}; |
var xml = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; return xml ? r.responseXML : r.responseText; | var data = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; data = data ? r.responseXML : r.responseText; if ( type == "script" ) eval.call( window, data ); return data; | httpData: function(r,type) { var ct = r.getResponseHeader("content-type"); var xml = ( !type || type == "xml" ) && ct && ct.indexOf("xml") >= 0; return xml ? r.responseXML : r.responseText; }, |
jQuery.eval( data ); | jQuery.globalEval( data ); | httpData: function(r,type) { var ct = r.getResponseHeader("content-type"); var data = !type && ct && ct.indexOf("xml") >= 0; data = type == "xml" || data ? r.responseXML : r.responseText; // If the type is "script", eval it in global context if ( type == "script" ) { jQuery.eval( data ); } // Get the JavaScri... |
if (window.execScript) window.execScript( data ); else window.setTimeout( data, 0 ); | jQuery.eval( data ); | httpData: function(r,type) { var ct = r.getResponseHeader("content-type"); var data = !type && ct && ct.indexOf("xml") >= 0; data = type == "xml" || data ? r.responseXML : r.responseText; // If the type is "script", eval it in global context // TODO extract as $.eval if ( type == "script" ) { if (window.execSc... |
if (xmlhttp.readyState == 4) { | if ((xmlhttp)&&(xmlhttp.readyState == 4)) { | this.HTTPloaded = function () { if (xmlhttp.readyState == 4) { me.inputText = this.value; me.getEligible(); if (me.eligible.length>0) { me.createDiv(); me.positionDiv(); me.showDiv(); } else { me.hideDiv(); } } } |
me.createDiv(); me.positionDiv(); me.showDiv(); | if (me.eligible.length>0) { me.createDiv(); me.positionDiv(); me.showDiv(); } else { me.hideDiv(); } | this.HTTPloaded = function () { if (xmlhttp.readyState == 4) { me.inputText = this.value; me.getEligible(); me.createDiv(); me.positionDiv(); me.showDiv(); } } |
if( xml.status == 304 || xmlRes == jQuery.lastModified[url] ) return true; | return xml.status == 304 || xmlRes == jQuery.lastModified[url] || jQuery.browser.safari && xml.status == undefined; | httpNotModified: function(xml, url) { try { var xmlRes = xml.getResponseHeader("Last-Modified"); // Firefox always returns 200. check Last-Modified date if( xml.status == 304 || xmlRes == jQuery.lastModified[url] ) return true; } catch(e){} return false; }, |
jQuery.httpSuccess = function(r) { try { return r.status ? ( r.status >= 200 && r.status < 300 ) || r.status == 304 : location.protocol == "file:"; } catch(e){} return false; }; | httpSuccess: function(r) { try { return r.status ? ( r.status >= 200 && r.status < 300 ) || r.status == 304 : location.protocol == "file:"; } catch(e){} return false; }, | jQuery.httpSuccess = function(r) { try { return r.status ? ( r.status >= 200 && r.status < 300 ) || r.status == 304 : location.protocol == "file:"; } catch(e){} return false;}; |
return r.status ? ( r.status >= 200 && r.status < 300 ) || r.status == 304 : location.protocol == "file:"; | return !r.status && location.protocol == "file:" || ( r.status >= 200 && r.status < 300 ) || r.status == 304 || jQuery.browser.safari && r.status == undefined; | httpSuccess: function(r) { try { return r.status ? ( r.status >= 200 && r.status < 300 ) || r.status == 304 : location.protocol == "file:"; } catch(e){} return false; }, |
r.status == 304 ) || !r.status && location.protocol == 'file:'; | r.status == 304 ) || !r.status && location.protocol == "file:"; | $.httpSuccess = function(r) { return ( r.status && ( r.status >= 200 && r.status < 300 ) || r.status == 304 ) || !r.status && location.protocol == 'file:';}; |
return ( r.status && ( r.status >= 200 && r.status < 300 ) || r.status == 304 ) || !r.status && location.protocol == "file:"; | return r.status ? ( r.status >= 200 && r.status < 300 ) || r.status == 304 : location.protocol == "file:"; | jQuery.httpSuccess = function(r) { return ( r.status && ( r.status >= 200 && r.status < 300 ) || r.status == 304 ) || !r.status && location.protocol == "file:";}; |
function hyphenateWord (str, length, hyphen) | function hyphenateWord (str, pos, hyphen) | function hyphenateWord (str, length, hyphen){ if (typeof hyphen == "undefined") hyphen = " "; if (str.length <= length) return str; var left = str.substr (0, (length)); var right = hyphenateWord(str.substr (length), length, hyphen); return left + hyphen + right;} |
if (str.length <= length) return str; | function hyphenateWord (str, length, hyphen){ if (typeof hyphen == "undefined") hyphen = " "; if (str.length <= length) return str; var left = str.substr (0, (length)); var right = hyphenateWord(str.substr (length), length, hyphen); return left + hyphen + right;} | |
var left = str.substr (0, (length)); var right = hyphenateWord(str.substr (length), length, hyphen); | var splitPos = str.substring(pos - 5, pos + 5).search(/[^A-Za-z0-9]/); splitPos = (splitPos != -1) ? pos - 4 + splitPos : pos; var left = str.substr (0, splitPos); var right = hyphenateWord(str.substr (splitPos), pos, hyphen); | function hyphenateWord (str, length, hyphen){ if (typeof hyphen == "undefined") hyphen = " "; if (str.length <= length) return str; var left = str.substr (0, (length)); var right = hyphenateWord(str.substr (length), length, hyphen); return left + hyphen + right;} |
var calComp = icssrv.parseICS(str); var subComp = calComp.getFirstSubcomponent("ANY"); while (subComp) { switch (subComp.componentType) { case "VEVENT": var event = Components.classes["@mozilla.org/calendar/event;1"] .createInstance(Components.interfaces.calIEvent); event.icalComponent = subComp; items.push(event); bre... | var rootComp = icssrv.parseICS(str); var calComp; if (rootComp.componentType == 'VCALENDAR') { calComp = rootComp; } else { calComp = rootComp.getFirstSubcomponent('VCALENDAR'); } while (calComp) { var subComp = calComp.getFirstSubcomponent("ANY"); while (subComp) { switch (subComp.componentType) { case "VEVENT": ... | function ics_importFromStream(aStream, aCount) { var items = new Array(); // Interpret the byte-array as an utf8 string, and convert into a // javascript string. var convStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .getService(Components.interfaces.... |
subComp = calComp.getNextSubcomponent("ANY"); | calComp = rootComp.getNextSubcomponent('VCALENDAR'); | function ics_importFromStream(aStream, aCount) { var items = new Array(); // Interpret the byte-array as an utf8 string, and convert into a // javascript string. var convStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .getService(Components.interfaces.... |
if (MisspelledWord) { spellChecker.IgnoreWordAllOccurrences(MisspelledWord); | if (gMisspelledWord) { spellChecker.IgnoreWordAllOccurrences(gMisspelledWord); | function IgnoreAll(){ if (MisspelledWord) { spellChecker.IgnoreWordAllOccurrences(MisspelledWord); } NextWord();} |
"chrome,modal", | "chrome,modal,titlebar", | function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if (addInterface... |
var filePicker = Components.classes["component: | var filePicker = Components.classes["@mozilla.org/filepicker;1"].createInstance(); | function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if (addInterface... |
var transaction = new Bookmarktransaction("insert"); | var transaction = new BookmarkImportTransaction("import"); | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... |
var nChildArc = RDF.GetResource(RDF_NS+"_"+String(index)); var rChild = BMDS.GetTarget(rTarget, nChildArc, true); transaction.item .push(rChild); transaction.parent.push(rTarget); transaction.index .push(index); transaction.isPerformed.push(true); | var nChildArc = RDF.GetResource(RDF_NS+"_"+String(index)); var rChild = BMDS.GetTarget(rTarget, nChildArc, true); transaction.item .push(rChild); transaction.parent .push(rTarget); transaction.index .push(index); transaction.isValid.push(true); | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... |
transaction.length = transaction.item.length; transaction.update(); aTransactionSet.push(transaction); aTransaction.type = "import"; | var isCancelled = !BookmarksUtils.any(transaction.isValid) if (!isCancelled) { gBMtxmgr.doTransaction(transaction); BookmarksUtils.flushDataSource(); } | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... |
fileName = kFilePicker.fileURL.spec; | fileName = kFilePicker.file.path; | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... |
var nChildArc = RDF.GetResource(RDF_NS+"_"+String(index)); | var nChildArc = RDFCU.IndexToOrdinalResource(index); | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... |
transaction.isValid.push(true); | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... | |
var isCancelled = !BookmarksUtils.any(transaction.isValid); if (!isCancelled) { BMSVC.transactionManager.doTransaction(transaction); BookmarksUtils.flushDataSource(); } | BMSVC.transactionManager.doTransaction(transaction); BookmarksUtils.flushDataSource(); | importBookmarks: function () { ///transaction... try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = Book... |
"chrome,modal", | "chrome,modal,titlebar", | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
top.successStr = Components.classes["component: | top.successStr = Components.classes["@mozilla.org/supports-wstring;1"].createInstance(); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p... |
top.errorStr = Components.classes["component: | top.errorStr = Components.classes["@mozilla.org/supports-wstring;1"].createInstance(); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p... |
if (module != null) | if (module) | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
if (top.successStr != null) { | if (top.successStr) { | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
if (top.errorStr != null) | if (top.errorStr) | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
ShowMailComplete( true); | ShowImportResults(true, 'Mail'); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
var meterText = GetFormattedBundleString( 'MailProgressMeterText', name); top.window.openDialog( "chrome: "", "chrome,modal,titlebar", {windowTitle: GetBundleString( 'MailProgressTitle'), progressTitle: meterText, progressStatus: "", progressInfo: top.progressInfo}); dump( "*** Returned from progress window\n"); | var meterText = GetFormattedBundleString('MailProgressMeterText', name); header.setAttribute("description", meterText); progressStatusEl.setAttribute("value", ""); progressTitleEl.setAttribute("value", meterText); deck.setAttribute("index", "2"); progressInfo.progressWindow = top.window; progressInfo.intervalState = ... | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
ShowMailComplete( false); | ShowImportResults(false, 'Mail'); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
if (top.successStr != null) { | if (top.successStr) | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
} | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... | |
ShowAddressComplete( true); | ShowImportResults(true, 'Address'); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
var meterText = GetFormattedBundleString( 'AddrProgressMeterText', name); var titleText = GetBundleString( 'AddrProgressTitle'); top.window.openDialog( "chrome: "", "chrome,modal,titlebar", {windowTitle: titleText, progressTitle: meterText, progressStatus: "", progressInfo: top.progressInfo}); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... | |
ShowAddressComplete( false); | ShowImportResults(false, 'Address'); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
if (error.value != null) { alert( GetBundleString( 'ImportSettingsFailed')); } | if (error.value) ShowImportResultsRaw(GetBundleString( 'ImportSettingsFailed'), null); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
{ alert( GetFormattedBundleString( 'ImportSettingsSuccess', name)); } | ShowImportResultsRaw(GetFormattedBundleString( 'ImportSettingsSuccess', name), null); | function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo... |
var filePicker = Components.classes["component: | var filePicker = Components.classes["@mozilla.org/filepicker;1"].createInstance(); | function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul... |
return( true); | return true; | function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul... |
else { return( false); } | else return false; | function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul... |
else { dump( "*** WantsProgress returned false\n"); if (mailInterface.BeginImport( success, error)) { return( true); } else { return( false); } } | else return mailInterface.BeginImport( success, error) ? true : false; | function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul... |
var file = new LocalFile(rv.file, MODE_RDONLY); | importOPML: function() { var rv = pickOpen(this.mBundle.getString("subscribe-OPMLImportTitle"), '$xml $opml $all'); if(rv.reason == PICK_CANCEL) return; var file = new LocalFile(rv.file, MODE_RDONLY); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(I... | |
if(!file) | var stream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream); var opmlDom = null; try{ stream.init(rv.file, MODE_RDONLY, PERM_IROTH, 0); var parser = new DOMParser(); opmlDom = parser.parseFromStream(stream, null, stream.available(), 'application... | importOPML: function() { var rv = pickOpen(this.mBundle.getString("subscribe-OPMLImportTitle"), '$xml $opml $all'); if(rv.reason == PICK_CANCEL) return; var file = new LocalFile(rv.file, MODE_RDONLY); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(I... |
var text = file.read(); var parser = new DOMParser(); var opmlDom = parser.parseFromString(text, 'application/xml'); | }finally{ stream.close(); } | importOPML: function() { var rv = pickOpen(this.mBundle.getString("subscribe-OPMLImportTitle"), '$xml $opml $all'); if(rv.reason == PICK_CANCEL) return; var file = new LocalFile(rv.file, MODE_RDONLY); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(I... |
var filePicker = Components.classes["component: | var filePicker = Components.classes["@mozilla.org/filepicker;1"].createInstance(); | function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = GetBundleString( 'ImportSettingsBadModule'); return( false); } // determin... |
for ( var i = 0; i < a.length; i++ ) | for ( var i = 0, al = a.length; i < al; i++ ) | inArray: function( b, a ) { for ( var i = 0; i < a.length; i++ ) if ( a[i] == b ) return i; return -1; }, |
try { if (typeof(eval('JS_'+loadID.toUpperCase()+'_LOADED')) == 'boolean') return 1; } catch (e) {} | if (typeof(this['JS_'+loadID.toUpperCase()+'_LOADED']) == 'boolean') { jslibPrint (loadID+" library already loaded"); return 1; } | function include(aScriptPath) { if (!aScriptPath) { jslibError(null, "Missing file path argument\n", "NS_ERROR_XPC_NOT_ENOUGH_ARGS", JS_LIB_FILE+": include"); throw - C.results.NS_ERROR_XPC_NOT_ENOUGH_ARGS; } if (aScriptPath==JS_LIB_PATH+JS_LIB_FILE) { jslibError(... |
const Inc = new C.Constructor(PROG_ID, INTERFACE); (new Inc()).loadSubScript(aScriptPath); | jslibGetService(PROG_ID, INTERFACE).loadSubScript(aScriptPath); | function include(aScriptPath) { if (!aScriptPath) { jslibError(null, "Missing file path argument\n", "NS_ERROR_XPC_NOT_ENOUGH_ARGS", JS_LIB_FILE+": include"); throw - C.results.NS_ERROR_XPC_NOT_ENOUGH_ARGS; } if (aScriptPath==JS_LIB_PATH+JS_LIB_FILE) { jslibError(... |
} catch(e) { | } catch (e) { jslibDebug(e); | function include(aScriptPath) { if (!aScriptPath) { jslibError(null, "Missing file path argument\n", "NS_ERROR_XPC_NOT_ENOUGH_ARGS", JS_LIB_FILE+": include"); throw - C.results.NS_ERROR_XPC_NOT_ENOUGH_ARGS; } if (aScriptPath==JS_LIB_PATH+JS_LIB_FILE) { jslibError(... |
SimileAjax.includeCssFile = function(url) { document.write("<link rel='stylesheet' href='" + url + "' type='text/css'/>"); | SimileAjax.includeCssFile = function(doc, url) { doc.write("<link rel='stylesheet' href='" + url + "' type='text/css'/>"); | SimileAjax.includeCssFile = function(url) { document.write("<link rel='stylesheet' href='" + url + "' type='text/css'/>"); }; |
SimileAjax.includeJavascriptFile = function(url) { document.write("<script src='" + url + "' type='text/javascript'></script>"); | SimileAjax.includeJavascriptFile = function(doc, url) { doc.write("<script src='" + url + "' type='text/javascript'></script>"); | SimileAjax.includeJavascriptFile = function(url) { document.write("<script src='" + url + "' type='text/javascript'></script>"); }; |
if (this.now == 1) this.now = 0.9999; | if (navigator.platform && navigator.platform == "MacPPC") { if (this.now == 1) this.now = 1; } else { if (this.now == 1) this.now = 0.9999; } | increase: function() { if (this.now == 1) this.now = 0.9999; if (this.now > 0 && this.el.style.visibility == "hidden") this.el.style.visibility = "visible"; if (this.now == 0) this.el.style.visibility = "hidden"; if (window.ActiveXObject) this.el.style.filter = "alpha(opacity=" + this.now*100 + ")"; this.el.style... |
return false; | return -1; | indexOf: function(object) { for (var i = 0; i < this.length; i++) if (this[i] == object) return i; return false; }, |
document.getElementById('downloadDictionaries').setAttribute('href', xlateURL('urn:clienturl:composer:spellcheckers')); | document.getElementById('downloadDictionaries').setAttribute('href', this.getDictionaryURL()); | init: function () { if (kLDAPPrefContractID in Components.classes) this.mLDAPPrefsService = Components.classes[kLDAPPrefContractID].getService(Components.interfaces.nsILDAPPrefsService); if (this.mLDAPPrefsService) { this.mLDAPPrefsService.migratePrefsIfNeeded(); } this.createDirectoriesList();... |
init: function(toplevelWindow, contentWindow) { const nsIWebBrowserChrome = Components.interfaces.nsIWebBrowserChrome; this.toplevelWindow = toplevelWindow; this.contentWindow = contentWindow; | init : function() { this.throbberElement = document.getElementById("navigator-throbber"); this.statusMeter = document.getElementById("statusbar-icon"); this.stopCommand = document.getElementById("Browser:Stop"); this.reloadCommand = document.getElementById("Browser:Reload"); this.r... | init: function(toplevelWindow, contentWindow) { const nsIWebBrowserChrome = Components.interfaces.nsIWebBrowserChrome; this.toplevelWindow = toplevelWindow; this.contentWindow = contentWindow; // hook up the whole parent chain thing var windowDocShell = this.convertWindowToDocS... |
var windowDocShell = this.convertWindowToDocShell(toplevelWindow); if (windowDocShell) { windowDocshell .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIURIContentListener) .parentContentListener = this; } var registerWindow = false; try { var treeItem = contentWindow.... | var securityUI = getBrowser().securityUI; this.onSecurityChange(null, null, securityUI.state); }, | init: function(toplevelWindow, contentWindow) { const nsIWebBrowserChrome = Components.interfaces.nsIWebBrowserChrome; this.toplevelWindow = toplevelWindow; this.contentWindow = contentWindow; // hook up the whole parent chain thing var windowDocShell = this.convertWindowToDocS... |
for ( var j = 0; j < a.length; j++ ) | for ( var j = 0, al = a.length; j < al; j++ ) | init: function(){ jQuery.initDone = true; jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && typeof a == "string" ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); jQuery.each( jQuery.macros.to, funct... |
jQuery.each( jQuery.macros.filter, function(i,n){ jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn ); }; }); | init: function(){ jQuery.initDone = true; jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); jQuery.each( jQuery.macros.to... | |
this._migrator = window.arguments[1].QueryInterface(kIMig); this._autoMigrate = window.arguments[2].QueryInterface(kIPStartup); | this._autoMigrate = window.arguments[1].QueryInterface(kIPStartup); | init: function () { var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(this, "Migration:Started", false); os.addObserver(this, "Migration:ItemBeforeMigrate", false); os.addObserver(this, "Migration:ItemAfterMigrate", false);... |
var listItem = tzListBox.appendItem(tzid, tzid); if (tzid == prefValue) { itemToSelect = listItem; | if (tzid.indexOf("/mozilla.org/") == 0) { var listItem = tzListBox.appendItem(tzid, tzid); if (tzid == prefValue) { itemToSelect = listItem; } | init: function() { dump("init called\n"); var tzListBox = document.getElementById("timezone-listbox"); var icsService = Components.classes["@mozilla.org/calendar/ics-service;1"].createInstance(Components.interfaces.calIICSService); var timezones = icsService.timezoneIds; prefValue... |
this._migrator = window.arguments[1].QueryInterface(kIMig); this._autoMigrate = window.arguments[2].QueryInterface(kIPStartup); | this._autoMigrate = window.arguments[1].QueryInterface(kIPStartup); | init: function () { var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(this, "Migration:Started", false); os.addObserver(this, "Migration:ItemBeforeMigrate", false); os.addObserver(this, "Migration:ItemAfterMigrate", false);... |
classes["component: | classes["@mozilla.org/rdf/rdf-service;1"]. | Init: function(aServer, aPort, aBindname) { // XXX - if this a "single-connection" datasource; we should figure // that out here by noticing that there is a ; after "rdf:ldap", and // that after that there is a cookie which happens to be an LDAP URL // designating the connection. for now, we just assume that th... |
var oURL = createInstance('component: | var oURL = createInstance('@mozilla.org/network/standard-url;1', | init: function(serverURL) { var oURL = createInstance('component://netscape/network/standard-url', 'nsIURL'); oURL.spec = serverURL; // Make sure it is a complete spec // Note that we don't care what the scheme is otherwise. // Should we care? POST works only on http an... |
jQuery.fn[ i ] = function(h) { | jQuery.fn[ n ] = function(h) { | init: function(){ jQuery.initDone = true; jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); jQuery.each( jQuery.macros.to... |
myIpAddress.eval = dnsResolve.eval = proxyAlert.eval = null; myIpAddress.call = dnsResolve.call = proxyAlert.call = null; myIpAddress.apply = dnsResolve.apply = proxyAlert.apply = null; | init: function(pacURI, pacText) { // remove PAC configuration if requested if (pacURI == "" || pacText == "") { this._findProxyForURL = null; this._sandBox = null; return; } // allocate a fresh Sandbox to clear global scope for new PAC script this.... | |
this._sandBox.myIpAddress = myIpAddress; this._sandBox.dnsResolve = dnsResolve; this._sandBox.alert = proxyAlert; | this._sandBox.importFunction(myIpAddress); this._sandBox.importFunction(dnsResolve); this._sandBox.importFunction(proxyAlert, "alert"); | init: function(pacURI, pacText) { // remove PAC configuration if requested if (pacURI == "" || pacText == "") { this._findProxyForURL = null; this._sandBox = null; return; } // allocate a fresh Sandbox to clear global scope for new PAC script this.... |
if (this._windowInitialized) return; | init: function () { if (this._windowInitialized) return; var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(this, "Migration:Started", false); os.addObserver(this, "Migration:ItemBeforeMigrate", false); os.addObse... | |
this._autoMigrate = window.arguments[1].QueryInterface(kIPStartup); | this._migrator = window.arguments[1] ? window.arguments[1].QueryInterface(kIMig) : null; this._autoMigrate = window.arguments[2].QueryInterface(kIPStartup); | init: function () { if (this._windowInitialized) return; var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(this, "Migration:Started", false); os.addObserver(this, "Migration:ItemBeforeMigrate", false); os.addObse... |
this._windowInitialized = true; | if (this._migrator) { if (this._migrator.sourceHasMultipleProfiles) this._wiz.goTo("selectProfile"); else { var sourceProfiles = this._migrator.sourceProfiles; var profileName = sourceProfiles.QueryElementAt(0, Components.interfaces.nsISupportsString); this._selectedProfile = profileName.data; this._wiz.goTo("migrating... | init: function () { if (this._windowInitialized) return; var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(this, "Migration:Started", false); os.addObserver(this, "Migration:ItemBeforeMigrate", false); os.addObse... |
this._autoMigrate = true; | this._autoMigrate = window.arguments[2].QueryInterface(kIPStartup); | init: function () { var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); os.addObserver(this, "Migration:Started", false); os.addObserver(this, "Migration:ItemBeforeMigrate", false); os.addObserver(this, "Migration:ItemAfterMigrate", false);... |
$(a[j])[n]( this ); | jQuery(a[j])[n]( this ); | init: function(){ jQuery.initDone = true; jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); jQuery.each( jQuery.macros.to... |
for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); | for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); | init: function(){ jQuery.initDone = true; jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); jQuery.each( jQuery.macros.to... |
init: function( aSource, aTarget, aDisplayName, aMIMEInfo, aStartTime, aOperation ) { | init: function( aSource, aTarget, aDisplayName, aMIMEInfo, aStartTime, aTempFile, aOperation ) { | init: function( aSource, aTarget, aDisplayName, aMIMEInfo, aStartTime, aOperation ) { this.source = aSource; this.target = aTarget; this.displayName = aDisplayName; this.MIMEInfo = aMIMEInfo; if ( aStartTime ) { this.startTime = aStartTime; } this.operation = aOperation; ... |
var categories = document.getElementById("categories").value; | var categories = document.getElementById("calendar.categories.names").value; | init: function () { // On non-instant-apply platforms, once this pane has been loaded, // attach our "revert all changes" function to the parent prefwindow's // "ondialogcancel" event. var parentPrefWindow = document.getElementById("CalendarPreferences"); if (!parentPrefWindow.ins... |
this.translateMenu = document.getElementById("menuitem-translate"); | init : function() { // XXXjag is this still needed? It's currently just "" this.defaultStatus = gNavigatorBundle.getString("defaultStatus"); this.urlBar = document.getElementById("urlbar"); this.throbberElement = document.getElementById("navigator-throbber"); this.statusMeter = document.g... | |
this.updateDownloadedPhishingListState(); | init: function () { this.mPane = document.getElementById("panePrivacy"); this.updateManualMarkMode(document.getElementById('manualMark').checked); this.updateJunkLogButton(document.getElementById('enableJunkLogging').checked); // Update the MP buttons this.updateMasterPasswordButton(); var ... | |
init: function(aStatusFeedback) | init: function(aStatusFeedback, aSubscribeMode) | init: function(aStatusFeedback) { if (!gNumPendingFeedDownloads) // if we aren't already in the middle of downloading feed items... { this.mStatusFeedback = aStatusFeedback; this.mStatusFeedback.startMeteors(); this.mStatusFeedback.showStatusString(GetString('newsblog-getNewMailCheck')); } }... |
this.mStatusFeedback.showStatusString(GetString('newsblog-getNewMailCheck')); | this.mStatusFeedback.showStatusString(aSubscribeMode ? GetNewsBlogStringBundle().GetStringFromName('subscribe-validating') : GetNewsBlogStringBundle().GetStringFromName('newsblog-getNewMailCheck')); | init: function(aStatusFeedback) { if (!gNumPendingFeedDownloads) // if we aren't already in the middle of downloading feed items... { this.mStatusFeedback = aStatusFeedback; this.mStatusFeedback.startMeteors(); this.mStatusFeedback.showStatusString(GetString('newsblog-getNewMailCheck')); } }... |
if (oURL.scheme != 'http') | if ((oURL.scheme != 'http') && (oURL.scheme != 'https')) | init: function(serverURL) { var ios = Components.classes["@mozilla.org/network/io-service;1"]. getService(Components.interfaces.nsIIOService); var oURL = ios.newURI(serverURL, null, null); // Make sure it is a complete spec // Note that we don't care what the scheme is otherwi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.