rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
dump("XXX ex " + ex + "\n"); | function FindNextFolder(originalFolderURI){ if (!originalFolderURI) return null; var originalFolderResource = RDF.GetResource(originalFolderURI); var folder = originalFolderResource.QueryInterface(Components.interfaces.nsIFolder); if (!folder) return null; try { var subFolderEnumerator = folder.Get... | |
if (folder.parent && folder.parent.URI) { return FindNextFolder(folder.parent.URI); } | function FindNextFolder(originalFolderURI){ if (!originalFolderURI) return null; var originalFolderResource = RDF.GetResource(originalFolderURI); var folder = originalFolderResource.QueryInterface(Components.interfaces.nsIFolder); if (!folder) return null; try { var subFolderEnumerator = folder.Get... | |
var start = item.startDate || item.dueDate; | var start = item.startDate || item.entryDate || item.dueDate; | function findPeriodForItem(item){ var start = item.startDate || item.dueDate; if (!start) return null; if (start.compare(this.today.end) == -1) return this.today; if (start.compare(this.tomorrow.end) == -1) return this.tomorrow; if (start.compare(this.soon.end) == -1) ... |
SimileAjax.findScript = function(substring) { var heads = document.documentElement.getElementsByTagName("head"); | SimileAjax.findScript = function(doc, substring) { var heads = doc.documentElement.getElementsByTagName("head"); | SimileAjax.findScript = function(substring) { var heads = document.documentElement.getElementsByTagName("head"); for (var h = 0; h < heads.length; h++) { var scripts = heads[h].getElementsByTagName("script"); for (var s = 0; s < scripts.length; s++) { var url = scr... |
var scripts = heads[h].getElementsByTagName("script"); for (var s = 0; s < scripts.length; s++) { var url = scripts[s].src; var i = url.indexOf(substring); if (i >= 0) { return url; | var node = heads[h].firstChild; while (node != null) { if (node.nodeType == 1 && node.tagName.toLowerCase() == "script") { var url = node.src; var i = url.indexOf(substring); if (i >= 0) { return url; } | SimileAjax.findScript = function(substring) { var heads = document.documentElement.getElementsByTagName("head"); for (var h = 0; h < heads.length; h++) { var scripts = heads[h].getElementsByTagName("script"); for (var s = 0; s < scripts.length; s++) { var url = scr... |
node = node.nextSibling; | SimileAjax.findScript = function(substring) { var heads = document.documentElement.getElementsByTagName("head"); for (var h = 0; h < heads.length; h++) { var scripts = heads[h].getElementsByTagName("script"); for (var s = 0; s < scripts.length; s++) { var url = scr... | |
dirObj.value = "/"; | dirObj.value = ""; | function FindSiteIndexAndDocDir(publishSiteData, docUrl, dirObj){ if (dirObj) dirObj.value = "/"; if (!publishSiteData || !docUrl || GetScheme(docUrl) == "file") return -1; // Remove filename from docUrl // (Check for terminal "/" so docUrl param can be a directory path) if (docUrl.charAt(docUrl.length-1) !=... |
findViewersForObject: function(aObject, aPanelId) | findViewersForObject: function findViewersForObject(aObject, aPanelId, aLinkedViewer) | findViewersForObject: function(aObject, aPanelId) { // check each entry in the registry var len = this.mViewerDS.length; var entry; var urls = []; for (var i = 0; i < len; ++i) { if (this.getEntryProperty(i, "panels").indexOf(aPanelId) == -1) { continue; } if (this.objectMatchesE... |
if (this.objectMatchesEntry(aObject, i)) { | if (this.objectMatchesEntry(aObject, aLinkedViewer, i)) { | findViewersForObject: function(aObject, aPanelId) { // check each entry in the registry var len = this.mViewerDS.length; var entry; var urls = []; for (var i = 0; i < len; ++i) { if (this.getEntryProperty(i, "panels").indexOf(aPanelId) == -1) { continue; } if (this.objectMatchesE... |
catch(ex) { | catch(ex) { dump("FinishAccount failed, " + ex +"\n"); | function FinishAccount() { try { var pageData = GetPageData(); var accountData= gCurrentAccountData; if (!accountData) { accountData = new Object; // Time to set the smtpRequiresUsername attribute if (!serverIsNntp(pageData)) accountData.smtpRequiresUsername = true; } Pa... |
var ccalendar = getDisplayComposite(); | var ccalendar = getCompositeCalendar(); | function finishCalendarToDoUnifinder(){ var ccalendar = getDisplayComposite(); ccalendar.removeObserver(unifinderToDoDataSourceObserver);} |
var ccalendar = getDisplayComposite(); | var ccalendar = getCompositeCalendar(); | function finishCalendarUnifinder( ){ var ccalendar = getDisplayComposite(); ccalendar.removeObserver(unifinderObserver);} |
if (IsInHTMLSourceMode()) { var htmlSource = gSourceContentWindow.value; if (htmlSource.length > 0) { var beginHead = htmlSource.indexOf("<head"); if (beginHead == -1) { AlertWithTitle(GetString("Alert"), GetString("NoHeadTag")); gEditorDisplayMode = DisplayModePreview; SetDisplayMode(DisplayModeSource); throw Compone... | function FinishHTMLSource(){ // Switch edit modes -- converts source back into DOM document SetEditMode(PreviousNonSourceDisplayMode);} | |
SimileAjax.Debug.exception(e); | SimileAjax.Debug.exception("Error firing event of name " + handlerName, e); | SimileAjax.ListenerQueue.prototype.fire = function(handlerName, args) { var listeners = [].concat(this._listeners); for (var i = 0; i < listeners.length; i++) { var listener = listeners[i]; if (handlerName in listener) { try { listener[handlerName].apply(listener, args); ... |
SimileAjax.Debug.exception(e); | SimileAjax.Debug.exception("Error firing event of name " + handlerName + " to wildcard handler", e); | SimileAjax.ListenerQueue.prototype.fire = function(handlerName, args) { var listeners = [].concat(this._listeners); for (var i = 0; i < listeners.length; i++) { var listener = listeners[i]; if (handlerName in listener) { try { listener[handlerName].apply(listener, args); ... |
e.initEvent("download-" + aEventType, false, true); | e.initEvent("download-" + aEventType, true, true); | function fireEventForElement(aElement, aEventType){ var e = document.createEvent("Events"); e.initEvent("download-" + aEventType, false, true); aElement.dispatchEvent(e);} |
if ( jQuery.browser.safari && event.target.nodeType == 3 ) { event = jQuery.extend({}, event); | if (event.target.nodeType == 3) { var originalEvent = event; event = jQuery.extend({}, originalEvent); | fix: function(event) { // Fix target property, if necessary if ( !event.target && event.srcElement ) event.target = event.srcElement; // Calculate pageX/Y if missing and clientX/Y available if ( typeof event.pageX == "undefined" && typeof event.clientX != "undefined" ) { var e = document.documentElement, b = d... |
event.target = event.target.parentNode; | event.target = originalEvent.target.parentNode; event.preventDefault = function() { return originalEvent.preventDefault(); }; event.stopPropagation = function() { return originalEvent.stopPropagation(); }; | fix: function(event) { // Fix target property, if necessary if ( !event.target && event.srcElement ) event.target = event.srcElement; // Calculate pageX/Y if missing and clientX/Y available if ( typeof event.pageX == "undefined" && typeof event.clientX != "undefined" ) { var e = document.documentElement, b = d... |
event.preventDefault = function() { this.returnValue = false; }; | if ( event ) { event.preventDefault = function() { this.returnValue = false; }; | fix: function(event) { event.preventDefault = function() { this.returnValue = false; }; event.stopPropagation = function() { this.cancelBubble = true; }; return event; } |
event.stopPropagation = function() { this.cancelBubble = true; }; | event.stopPropagation = function() { this.cancelBubble = true; }; } | fix: function(event) { event.preventDefault = function() { this.returnValue = false; }; event.stopPropagation = function() { this.cancelBubble = true; }; return event; } |
children = treeitem.childNodes.item(1).childNodes; | var children = treeitem.childNodes.item(1).childNodes; | function fixup_children(id) { // Add container="true" on nodes with "link" attribute var treeitem = document.getElementById(id); children = treeitem.childNodes.item(1).childNodes; for (var ii=0; ii < children.length; ii++) { var child = children.item(ii); if (child.getAttribute('link') != '' && child.g... |
GetCurrentEditor().incrementModificationCount(1); | getCurrentEditor().incrementModificationCount(1); | function FlushChanges(){ if (gDialog.modified) { // let's make sure the editor is going to require save on exit GetCurrentEditor().incrementModificationCount(1); } // Validate all user data and set attributes and possibly insert new element here // If there's an error the user must correct, return false to ke... |
var form = $(form); | form = $(form); | focusFirstElement: function(form) { var form = $(form); var elements = Form.getElements(form); for (var i = 0; i < elements.length; i++) { var element = elements[i]; if (element.type != 'hidden' && !element.disabled) { Field.activate(element); break; } } }, |
form = $(form); var elements = Form.getElements(form); for (var i = 0; i < elements.length; i++) { var element = elements[i]; if (element.type != 'hidden' && !element.disabled) { Field.activate(element); break; } } | Field.activate(Form.findFirstElement(form)); | focusFirstElement: function(form) { form = $(form); var elements = Form.getElements(form); for (var i = 0; i < elements.length; i++) { var element = elements[i]; if (element.type != 'hidden' && !element.disabled) { Field.activate(element); break; } } }, |
if (!currentFocusedElement) return; | function FocusRingUpdate_Mail(){ // WhichPaneHasFocus() uses on top.document.commandDispatcher.focusedElement // to determine which pane has focus // if the focusedElement is null, we're here on a blur. // nsFocusController::Blur() calls nsFocusController::SetFocusedElement(null), // which will update any command... | |
currentFocusedElement.setAttribute("focusring", "true"); | if (currentFocusedElement) currentFocusedElement.setAttribute("focusring", "true"); | function FocusRingUpdate_Mail(){ // WhichPaneHasFocus() uses on top.document.commandDispatcher.focusedElement // to determine which pane has focus // if the focusedElement is null, we're here on a blur. // nsFocusController::Blur() calls nsFocusController::SetFocusedElement(null), // which will update any command... |
else { var isImap = (treeitem.getAttribute('ServerType') == "imap"); if (isImap) { var uri = treeitem.getAttribute("id"); var folder = GetMsgFolderFromUri(uri); if (folder) { var imapFolder = folder.QueryInterface(Components.interfaces.nsIMsgImapMailFolder); if (imapFolder) { imapFolder.PerformExpand(msgWindow); } } } ... | function FolderPaneOnClick(event){ debug("in FolderPaneClick()\n"); var targetclass = event.target.getAttribute('class'); debug('targetclass = ' + targetclass + '\n'); if (targetclass == 'tree-cell-twisty') { // The twisty is nested three below the treeitem: // <treeitem> // <treerow> ... | |
if (targetclass == 'twisty') { | if (targetclass == 'tree-cell-twisty') { | function FolderPaneOnClick(event){ var targetclass = event.target.getAttribute('class'); debug('targetclass = ' + targetclass + '\n'); if (targetclass == 'twisty') { // The twisty is nested three below the treeitem: // <treeitem> // <treerow> // <treecell> // <t... |
debug("in FolderPaneClick()\n"); | debug("in FolderPaneClick()\n"); if (event.button != 0) return; | function FolderPaneOnClick(event){ debug("in FolderPaneClick()\n"); var t = event.originalTarget; var item; var uri; if (t.getAttribute('twisty') == 'true') { // The twisty is nested three below the treeitem: // <treeitem> // <treerow> // <treecell> // <button clas... |
msgDatabase = null; | function FolderPaneSelectionChange(){ var folderOutliner = GetFolderOutliner(); if (folderOutliner.outlinerBoxObject.selection.count == 1) { var startIndex = {}; var endIndex = {}; folderOutliner.outlinerBoxObject.selection.getRangeAt(0, startIndex, endIndex); var folderResource = G... | |
ClearMessagePane(); | function FolderPaneSelectionChange(){ var tree = GetFolderTree(); if(tree) { var selArray = tree.selectedItems; if ( selArray && (selArray.length == 1) ) { ChangeFolderByDOMNode(selArray[0]); // explicitly force the message pane to get cleared when we switch folders ClearMessagePane(); ... | |
var threadTree = GetThreadTree(); ClearThreadTreeSelection(); threadTree.setAttribute('ref', null); ClearMessagePane(); | ClearThreadPane(); | function FolderPaneSelectionChange(){ var tree = GetFolderTree(); if(tree) { var selArray = tree.selectedItems; if ( selArray && (selArray.length == 1) ) { ChangeFolderByDOMNode(selArray[0]); // explicitly force the message pane to get cleared when we switch folders ClearMessagePane(); ... |
ClearMessagePane(); | function FolderPaneSelectionChange(){ var tree = GetFolderTree(); if(tree) { var selArray = tree.selectedItems; if ( selArray && (selArray.length == 1) ) { ChangeFolderByDOMNode(selArray[0]); // explicitly force the message pane to get cleared when we switch folders ClearMessagePane(); ... | |
doSetOKCancel(folderPropsOKButtonCallback); | function folderPropsOnLoad(){ dump("folder props loaded"+'\n'); doSetOKCancel(folderPropsOKButtonCallback); RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService); // look in arguments[0] for parameters if (window.arguments && window.arguments[0]) { if ( windo... | |
this.mObserverList[i].OnAssert(this.kRasputin, this.kNC_child, | this.mObserverList[i].onAssert(this.kRasputin, this.kNC_child, | forceAssert: function() { dump("forceAssert() called\n"); for ( var i = 0 ; i < this.mObserverList.length ; i++) { this.mObserverList[i].OnAssert(this.kRasputin, this.kNC_child, this.kElvis); } }, |
sysBeep.Beep(); | function forceInteger(elementID){ var editField = document.getElementById( elementID ); if ( !editField ) return; var stringIn = editField.value; if (stringIn && stringIn.length > 0) { // Strip out all nonnumeric characters editField.value = stringIn.replace(/\D+/g,""); // we hope to remove the followi... | |
status += Math.round( nSecs/3600 ) + " hours, "; | status += Math.round( nSecs/3600 ) + ":"; | function formatSeconds( nSecs ) { status = ""; if ( nSecs >= 3600 ) { status += Math.round( nSecs/3600 ) + " hours, "; nSecs = nSecs % 3600; } status += Math.round( nSecs/60 ) + " minutes and "; nSecs = nSecs % 60; status += nSecs + " seconds"; return status;} |
status += Math.round( nSecs/60 ) + " minutes and "; | status += Math.round( nSecs/60 ) + ":"; | function formatSeconds( nSecs ) { status = ""; if ( nSecs >= 3600 ) { status += Math.round( nSecs/3600 ) + " hours, "; nSecs = nSecs % 3600; } status += Math.round( nSecs/60 ) + " minutes and "; nSecs = nSecs % 60; status += nSecs + " seconds"; return status;} |
status += nSecs + " seconds"; | status += nSecs; | function formatSeconds( nSecs ) { status = ""; if ( nSecs >= 3600 ) { status += Math.round( nSecs/3600 ) + " hours, "; nSecs = nSecs % 3600; } status += Math.round( nSecs/60 ) + " minutes and "; nSecs = nSecs % 60; status += nSecs + " seconds"; return status;} |
function FormControlFilter() { switch (node.nodeName.toLowerCase()) { case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; default: return NodeFilter.FILTER_SKIP; } } | function FormControlFilter(node) { if (node instanceof nsIInputElement || node instanceof nsISelectElement || node instanceof nsIButtonElement || node instanceof nsITextareaElement || node instanceof nsIObjectElement) return NodeFilter.FILTER_ACCEPT; return NodeFilter.FILTER_SKIP; } | function FormControlFilter() { switch (node.nodeName.toLowerCase()) { case "input": case "select": case "button": case "textarea": case "object": return NodeFilter.FILTER_ACCEPT; default: return NodeFilter.FILTER_SKIP; } } |
this.find("input[@type='submit'],input[@type='hidden'],textarea,input[@checked],input[@type='password'],input[@type='text'],option[@selected]").filter(":enabled").each(function() { | this.find("input,textarea,option") .filter(":enabled") .each(function() { if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; if (((this.type == 'radio') || (this.type == 'checkbox')) && (!this.checked)) return; | $.fn.formValues = function() { var a = []; this.find("input[@type='submit'],input[@type='hidden'],textarea,input[@checked],input[@type='password'],input[@type='text'],option[@selected]").filter(":enabled").each(function() { var o = {}; o.name = this.name || this.id || this.parentNode.name || this.parentNode.id; o... |
this.find("input,textarea,option") .filter(":enabled") .each(function() { if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; | $("input,textarea,option",this).filter(":enabled").each(function(){ if ((this.parentNode.type == 'select-one' || this.parentNode.type == 'select-multiple') && !this.selected) { return null; } | $.fn.formValues = function() { var a = []; this.find("input,textarea,option") .filter(":enabled") .each(function() { // // Skip selects with options which aren't selected if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; // // Skip... |
if (((this.type == 'radio') || (this.type == 'checkbox')) && (!this.checked)) return; | if ((this.type == 'radio' || this.type == 'checkbox') && !this.checked) { return null; } | $.fn.formValues = function() { var a = []; this.find("input,textarea,option") .filter(":enabled") .each(function() { // // Skip selects with options which aren't selected if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; // // Skip... |
var o = {}; o.name = this.name || this.id || this.parentNode.name || this.parentNode.id; o.value = this.value; a.push(o); | a.push({ name: this.name || this.id || this.parentNode.name || this.parentNode.id, value: this.value | $.fn.formValues = function() { var a = []; this.find("input,textarea,option") .filter(":enabled") .each(function() { // // Skip selects with options which aren't selected if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; // // Skip... |
}); | $.fn.formValues = function() { var a = []; this.find("input,textarea,option") .filter(":enabled") .each(function() { // // Skip selects with options which aren't selected if (((this.parentNode.type == 'select-one') || (this.parentNode.type == 'select-multiple')) && (!this.selected)) return; // // Skip... | |
target : file, | target : makeFileURL(file), | function foundHeaderInfo(aSniffer, aData, aSkipPrompt){ var contentType = aSniffer.contentType; var contentEncodingType = aSniffer.contentEncodingType; var shouldDecode = false; // Are we allowed to decode? try { const helperAppService = Components.classes["@mozilla.org/uriloader/external-helper-app-servic... |
const nsILocalFile = Components.interfaces.nsILocalFile; const lfContractID = "@mozilla.org/file/local;1"; filesFolder = Components.classes[lfContractID].createInstance(nsILocalFile); filesFolder.initWithPath(persistArgs.target.path); | filesFolder = file.clone(); | function foundHeaderInfo(aSniffer, aData, aSkipPrompt){ var contentType = aSniffer.contentType; var contentEncodingType = aSniffer.contentEncodingType; var shouldDecode = false; // Are we allowed to decode? try { const helperAppService = Components.classes["@mozilla.org/uriloader/external-helper-app-servic... |
var modeComplete = aData.document != null && (contentType == "text/html" || contentType == "text/xml"); | var isDocument = aData.document != null && isDocumentType(contentType); | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var mo... |
modeComplete ? MODE_COMPLETE : MODE_FILEONLY); | isDocument ? MODE_COMPLETE : MODE_FILEONLY); | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var mo... |
var source = (aData.document && contentType == "text/html" && fp.filterIndex == 0) ? aData.document : aSniffer.uri; | var source = (isDocument && fp.filterIndex != 1) ? aData.document : aSniffer.uri; | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var mo... |
source : source, target : fp.file, postData : getPostData() | source : source, contentType : (isDocument && fp.filterIndex == 2) ? "text/plain" : contentType, target : fp.file, postData : isDocument ? getPostData() : null, bypassCache : aData.bypassCache | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var mo... |
fp.defaultString = getNormalizedLeafName(defaultFileName, contentType); | var defaultExtension = getDefaultExtension(defaultFileName, aSniffer.uri, contentType); fp.defaultExtension = defaultExtension; fp.defaultString = getNormalizedLeafName(defaultFileName, defaultExtension); | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var is... |
fp.file.leafName = getNormalizedLeafName(fp.file.leafName, contentType); | function foundHeaderInfo(aSniffer, aData){ var contentType = aSniffer.contentType; var fp = makeFilePicker(); var titleKey = aData.filePickerTitle || "SaveLinkTitle"; var bundle = getStringBundle(); fp.init(window, bundle.GetStringFromName(titleKey), Components.interfaces.nsIFilePicker.modeSave); var is... | |
if (!scriptRec) dd ("no scriptrec"); else if (fn == "anonymous") | if (fn == "anonymous") | function FrameRecord (frame){ if (!(frame instanceof jsdIStackFrame)) throw new BadMojo (ERR_INVALID_PARAM, "value"); this.setColumnPropertyName ("stack-col-0", "functionName"); this.setColumnPropertyName ("stack-col-2", "location"); var fn = frame.script.functionName; if (!fn) fn = MSG_VAL... |
if (!iterable) return []; | var $A = Array.from = function(iterable) { if (iterable.toArray) { return iterable.toArray(); } else { var results = []; for (var i = 0; i < iterable.length; i++) results.push(iterable[i]); return results; }} | |
client.ucConverter.charset = client.CHARSET; | function fromUnicode (msg){ if (!("ucConverter" in client)) return msg; return client.ucConverter.ConvertFromUnicode(msg);} | |
picker.appendFilter('OPML Files', '*.opml'); | var newsBlogBundle = document.getElementById("bundle_newsblog"); picker.appendFilter( newsBlogBundle.getString("subscribe-OPMLExportOPMLFilesFilterText"), "*.opml"); | function futils_nosepicker(initialPath, typeList, attribs){ const classes = Components.classes; const interfaces = Components.interfaces; const PICKER_CTRID = "@mozilla.org/filepicker;1"; const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const nsIFilePicker = interfaces.nsIFilePicker; const nsILoca... |
case "$opml": picker.appendFilter('OPML Files', '*.opml'); break; | function futils_nosepicker(initialPath, typeList, attribs){ const classes = Components.classes; const interfaces = Components.interfaces; const PICKER_CTRID = "@mozilla.org/filepicker;1"; const LOCALFILE_CTRID = "@mozilla.org/file/local;1"; const nsIFilePicker = interfaces.nsIFilePicker; const nsILoca... | |
y.opacity = z.now; | else y.opacity = z.now; | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ... |
y.zoom = 1; | y.zoom = "1"; | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ... |
return parseFloat( jQuery.curCSS(z.el, prop) ) || z.max(); | var r = parseFloat( jQuery.curCSS(z.el, prop) ); return r && r > -10000 ? r : z.max(); | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o... |
z.custom(z.cur(),0); | z.custom(z.el.orig[prop], 0); | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o... |
if ( z.o.hide ) y.display = 'none'; | z.el.curAnim[ prop ] = true; var done = true; for ( var i in z.el.curAnim ) if ( z.el.curAnim[i] !== true ) done = false; if ( done ) { y.overflow = z.el.oldOverflow; if ( z.o.hide ) y.display = 'none'; if ( z.o.hide ) { for ( var p in z.el.curAnim ) { y[ p ] = z.el.orig[p] + ( p == "opacity" ? "" : "px" ); | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o... |
y.overflow = z.el.oldOverflow; if ( z.o.hide ) y[ prop ] = z.el.orig[ prop ].constructor == Number && prop != "opacity" ? z.el.orig[prop] + "px" : z.el.orig[prop]; if ( prop == 'height' || prop == 'width' ) jQuery.setAuto( z.el, prop ); | if ( p == 'height' || p == 'width' ) jQuery.setAuto( z.el, p ); } } } | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o... |
if( z.o.complete && z.o.complete.constructor == Function ) | if( done && z.o.complete && z.o.complete.constructor == Function ) | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o... |
$.fx = function(el,op,ty,tz){ | $.fx = function(el,op,ty){ | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;... |
z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;z.custom(0,z.max());}; z.hide = function(){z... | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;... | |
unit: "px", | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;... | |
z.step = function(f,tt){ | z.el = el; var y = z.el.style; z.a = function(){ z.el.style[ty] = z.now+'px'; }; z.max = function(){return z.el["$$orig"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.custom = function(from,to){ z.startTime = (new Date()).getTime(); z.now = from; z.a(); z.timer = setInterval(function(){ z.ste... | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;... |
var p = (t - z.s) / z.o.duration; if (t >= z.o.duration+z.s) { z.now = tt; z.clear(); setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); } if(z.o.onComplete.constructor == Function){z.... | if (t > z.o.duration + z.startTime) { clearInterval(z.timer); z.timer = null; y.overflow = z.oldOverflow; if( y.height == "0px" || y.width == "0px" ) { y.display = "none"; } if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, 'height' ); $.setAuto( z.el, 'width' ); } if( z.o.onComplete.constructor == Functi... | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;... |
z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (tt-f) + f; | var p = (t - this.startTime) / z.o.duration; z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (lastNum-firstNum) + firstNum; z.a(); | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;... |
z.a(); | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;... | |
z.custom = function(f,t){ if(z.timer) {return null;} this.now=f;z.a();z.io=z.cur();z.s=(new Date()).getTime(); z.timer=setInterval(function(){z.step(f,t);}, 13); }; | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; z.show = function(){z.ss("block");z.o.auto=true;... | |
jQuery.fx = function( elem, options, prop ){ var z = this; z.o = { duration: options.duration || 400, complete: options.complete }; z.el = elem; var y = z.el.style; z.a = function(){ if ( prop == "opacity" ) { if (z.now == 1) z.now = 0.9999; if (window.ActiveXObject) y.filter = "alpha(opacity=" + z.now*100 + "... | fx: function( elem, options, prop ){ var z = this; z.o = { duration: options.duration || 400, complete: options.complete }; z.el = elem; var y = z.el.style; z.a = function(){ if ( prop == "opacity" ) { if (z.now == 1) z.now = 0.9999; if (window.ActiveXObject) y.filter = "alpha(opacity=" + z.now*100 + ")"; y.op... | jQuery.fx = function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { if (z.now ... |
y.overflow = z.oldOverflow; if ( (prop == "height" || prop == "width") && z.o.auto ) jQuery.setAuto( z.el, prop ); if( z.o.complete && z.o.complete.constructor == Function ) { if ( y.height == "0px" || y.width == "0px" ) y.display = "none"; z.o.complete.apply( z.el ); | z.timer = setInterval(function(){ z.step(from, to); }, 13); }; z.show = function(){ y.display = "block"; z.o.auto = true; z.custom(0,z.max()); }; z.hide = function(){ z.el["orig"+prop] = this.cur(); z.custom(z.cur(),0); }; if ( jQuery.browser.msie && !z.el.currentStyle.hasLayout ) y.zoom = 1; z.oldOverflow =... | jQuery.fx = function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { if (z.now ... |
} else { var p = (t - this.startTime) / z.o.duration; z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (lastNum-firstNum) + firstNum; z.a(); } }; }; | }; } | jQuery.fx = function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { if (z.now ... |
jQuery.setAuto( z.el, prop ); | if ( prop == 'height' || prop == 'width' ) jQuery.setAuto( z.el, prop ); | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o... |
z.show = function(){ | z.show = function( p ){ | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ... |
if ( !y[prop] ) z.o.auto = true; z.custom(0,z.max()); | z.custom( 0, z.el.orig[prop] ); | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ... |
y.display = "block"; | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ... | |
z.oldOverflow = y.overflow; | if ( !z.el.oldOverlay ) z.el.oldOverflow = jQuery.css( z.el, "overflow" ); | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ... |
y.overflow = "hidden"; | if ( z.el.oldOverlay == "visible" ) y.overflow = "hidden"; | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ... |
y.overflow = z.oldOverflow; | y.overflow = z.el.oldOverflow; | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ... |
$.fx = function(el,op,ty){ | $.fx = function( elem, options, prop ){ | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op | duration: options.duration || 400, complete: options.complete | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
z.el = el; | z.el = elem; | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
z.el.style[ty] = z.now+'px'; | if ( prop == "opacity" ) { if (z.now == 1) z.now = 0.9999; if (window.ActiveXObject) y.filter = "alpha(opacity=" + z.now*100 + ")"; y.opacity = z.now; } else y[prop] = z.now+"px"; | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
z.max = function(){return z.el["$$orig"+ty]||z.cur();}; | z.max = function(){ return z.el["orig"+prop] || z.cur(); }; | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
z.cur = function(){return $.css(z.el,ty);}; | z.cur = function(){ return parseFloat( $.css(z.el,prop) ); }; | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
z.el["$$orig"+ty] = this.cur(); | z.el["orig"+prop] = this.cur(); | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
z.toggle = function(){ if ( z.cur() > 0 ) { z.hide(); } else { z.show(); } }; | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... | |
if ( $.browser == "msie" && !z.el.currentStyle.hasLayout ) { | if ( $.browser == "msie" && !z.el.currentStyle.hasLayout ) | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
} | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... | |
if ( (ty == "height" || ty == "width") && z.o.auto ) { $.setAuto( z.el, ty ); } | if ( (prop == "height" || prop == "width") && z.o.auto ) $.setAuto( z.el, prop ); | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
if( z.o.onComplete.constructor == Function ) { | if( z.o.complete.constructor == Function ) { | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
if ( y.height == "0px" || y.width == "0px" ) { | if ( y.height == "0px" || y.width == "0px" ) | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
$.apply( z.el, z.o.onComplete ); | z.o.complete.apply( z.el ); | $.fx = function(el,op,ty){ var z = this; // The users options z.o = { duration: (op && op.duration) || 400, onComplete: (op && op.onComplete) || op }; // The element z.el = el; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ z.el.style[ty] = z.now+'px'; }; // Figure o... |
if ( !z.el.oldOverlay ) | if ( !z.el.oldOverflow ) | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o... |
z.max = function(){return z.el["io"+ty]||z.el["natural"+tz]||z.el["scroll"+tz]||z.cur();}; z.cur = function(){return parseInt($.getCSS(z.el,ty),10);}; | z.max = function(){return z.el["io"+ty]||z.cur();}; z.cur = function(){return $.css(z.el,ty);}; | $.fx = function(el,op,ty,tz){ var z = this; z.el = el.constructor==String?document.getElementById(el):el; var y = z.el.style; z.a = function(){z.el.style[ty]=z.now+z.o.unit;}; z.max = function(){return z.el["io"+ty]||z.el["natural"+tz]||z.el["scroll"+tz]||z.cur();}; z.cur = function(){return parseInt($.getCSS(z.el,ty),... |
if (z.now == 1) z.now = 0.9999; | if (jQuery.browser.mozilla && z.now == 1) z.now = 0.9999; | fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.