code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
_expand = function( dst, theTheme ) { // Set up the destination collection. It's either the array of files passed // by the user or 'out/resume.all' if no targets were specified. const destColl = (dst && dst.length && dst) || [PATH.normalize('out/resume.all')]; // Assemble an array of expanded target files......
Expand output files. For example, "foo.all" should be expanded to ["foo.html", "foo.doc", "foo.pdf", "etc"]. @param dst An array of output files as specified by the user. @param theTheme A FRESHTheme or JRSTheme object.
_expand
javascript
hacksalot/HackMyResume
src/verbs/build.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/build.js
MIT
_verifyTheme = function( themeNameOrPath ) { // First, see if this is one of the predefined FRESH themes. There are only a // handful of these, but they may change over time, so we need to query // the official source of truth: the fresh-themes repository, which mounts the // themes conveniently by name to the...
Verify the specified theme name/path.
_verifyTheme
javascript
hacksalot/HackMyResume
src/verbs/build.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/build.js
MIT
_loadTheme = function( tFolder ) { const themeJsonPath = PATH.join(tFolder, 'theme.json'); // [^1] const exists = require('path-exists').sync; // Create a FRESH or JRS theme object const theTheme = exists(themeJsonPath) ? new FRESHTheme().open(tFolder) : new JRSTheme().open(tFolder); // Cache t...
Load the specified theme, which could be either a FRESH theme or a JSON Resume theme (or both).
_loadTheme
javascript
hacksalot/HackMyResume
src/verbs/build.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/build.js
MIT
_convert = function( srcs, dst, opts ) { // If no source resumes are specified, error out let fmtUp; if (!srcs || !srcs.length) { this.err(HMSTATUS.resumeNotFound, { quit: true }); return null; } // If no destination resumes are specified, error out except for the special // case of two resumes: ...
Private workhorse method. Convert 0..N resumes between FRESH and JRS formats.
_convert
javascript
hacksalot/HackMyResume
src/verbs/convert.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/convert.js
MIT
_convertOne = function(src, dst, idx, targetSchema) { // Load the resume const rinfo = ResumeFactory.loadOne(src, { format: null, objectify: true, inner: { privatize: false } } ); // If a load error occurs, report it and move on to the next file (if any) if (rinfo.fluenterror) { ...
Private workhorse method. Convert a single resume.
_convertOne
javascript
hacksalot/HackMyResume
src/verbs/convert.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/convert.js
MIT
_create = function( src, dst, opts ) { if (!src || !src.length) { this.err(HMSTATUS.createNameMissing, { quit: true }); return null; } const results = _.map(src, function( t ) { if (opts.assert && this.hasError()) { return { }; } const r = _createOne.call(this, t, opts); if (r.fluenterror) {...
Create a new empty resume in either FRESH or JRS format.
_create
javascript
hacksalot/HackMyResume
src/verbs/create.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/create.js
MIT
_peek = function( src, dst, opts ) { if (!src || !src.length) { this.err(HMSTATUS.resumeNotFound, { quit: true }); return null; } const objPath = (dst && dst[0]) || ''; const results = _.map(src, function( t ) { if (opts.assert && this.hasError()) { return { }; } const tgt = _peekOne.call(t...
Peek at a resume, resume section, or resume field.
_peek
javascript
hacksalot/HackMyResume
src/verbs/peek.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/peek.js
MIT
_peekOne = function( t, objPath ) { this.stat(HMEVENT.beforePeek, { file: t, target: objPath }); // Load the input file JSON 1st const obj = safeLoadJSON(t); // Fetch the requested object path (or the entire file) let tgt = null; if (!obj.ex) { tgt = objPath ? __.get(obj.json, objPath) : obj.json; ...
Peek at a single resume, resume section, or resume field.
_peekOne
javascript
hacksalot/HackMyResume
src/verbs/peek.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/peek.js
MIT
_validateOne = function(t, validator, schemas) { const ret = {file: t, isValid: false, status: 'unknown', schema: '-----'}; try { // Read and parse the resume JSON. Won't throw. const obj = safeLoadJSON(t); // If success, validate the resume against the schema if (!obj.ex) { if (obj.json.b...
Validate a single resume. @returns { file: <fileName>, isValid: <validFlag>, status: <validationStatus>, violations: <validationErrors>, schema: <schemaType>, error: <errorObject> }
_validateOne
javascript
hacksalot/HackMyResume
src/verbs/validate.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/validate.js
MIT
fire(evtName, payload) { payload = payload || { }; payload.cmd = this.moniker; this.emitter.emit(`hmr:${evtName}`, payload); return true; }
Fire an arbitrary event, scoped to "hmr:".
fire
javascript
hacksalot/HackMyResume
src/verbs/verb.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/verb.js
MIT
stat( subEvent, payload ) { payload = payload || { }; payload.sub = subEvent; this.fire('status', payload); return true; }
Fire the 'hmr:status' error event.
stat
javascript
hacksalot/HackMyResume
src/verbs/verb.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/verb.js
MIT
setError( code, obj ) { this.errorCode = code; this.errorObj = obj; }
Associate error info with the invocation.
setError
javascript
hacksalot/HackMyResume
src/verbs/verb.js
https://github.com/hacksalot/HackMyResume/blob/master/src/verbs/verb.js
MIT
function genThemes( title, src, fmt ) { // Set up a new suite describe('Testing themes against ' + title.toUpperCase() + ' resume ' + '(' + fmt + ')' , function () { // Increase the timeout since resume generation can be expensive.. this.timeout(50000); // Define a local function to build a singl...
Test the specified resume against multiple themes.
genThemes
javascript
hacksalot/HackMyResume
test/scripts/test-themes.js
https://github.com/hacksalot/HackMyResume/blob/master/test/scripts/test-themes.js
MIT
function genTheme( fmt, src, themeName, themeLoc, testTitle ) { themeLoc = themeLoc || themeName; testTitle = themeName.toUpperCase() + ' theme (' + fmt + ') should generate without throwing an exception'; // Instantiate a test case it( testTitle, function () { // Set up option...
Test the specified resume against multiple themes.
genTheme
javascript
hacksalot/HackMyResume
test/scripts/test-themes.js
https://github.com/hacksalot/HackMyResume/blob/master/test/scripts/test-themes.js
MIT
function folderContains( needle, haystack ) { var ignoreExts = ['.png','.jpg','.jpeg','.bmp','.pdf', '.gif']; var safePath = path.normalize( path.join(__dirname, haystack)); return _.some( readFolder( safePath ), function( absPath ) { if( require('fs').lstatSync( absPath ).isFile() ) { var pathInfo = pa...
Test the specified resume against multiple themes.
folderContains
javascript
hacksalot/HackMyResume
test/scripts/test-themes.js
https://github.com/hacksalot/HackMyResume/blob/master/test/scripts/test-themes.js
MIT
function foldersMatch( a, b ) { var ret; ret = dirCompare.compareSync(a, b, {compareSize: true, skipSubdirs: true}); if( !ret.same ) return false; ret = dirCompare.compareSync(a, b, {compareContent: true, skipSubdirs: true}); return ret.differences === 1; }
Test the specified resume against multiple themes.
foldersMatch
javascript
hacksalot/HackMyResume
test/scripts/test-themes.js
https://github.com/hacksalot/HackMyResume/blob/master/test/scripts/test-themes.js
MIT
function makeKeywords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; }
Author: Hans Engel Branched from CodeMirror's Scheme mode (by Koh Zi Han, based on implementation by Koh Zi Chun)
makeKeywords
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
BSD-3-Clause
function stateStack(indent, type, prev) { // represents a state stack object this.indent = indent; this.type = type; this.prev = prev; }
Author: Hans Engel Branched from CodeMirror's Scheme mode (by Koh Zi Han, based on implementation by Koh Zi Chun)
stateStack
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
BSD-3-Clause
function pushStack(state, indent, type) { state.indentStack = new stateStack(indent, type, state.indentStack); }
Author: Hans Engel Branched from CodeMirror's Scheme mode (by Koh Zi Han, based on implementation by Koh Zi Chun)
pushStack
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
BSD-3-Clause
function popStack(state) { state.indentStack = state.indentStack.prev; }
Author: Hans Engel Branched from CodeMirror's Scheme mode (by Koh Zi Han, based on implementation by Koh Zi Chun)
popStack
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
BSD-3-Clause
function isNumber(ch, stream){ // hex if ( ch === '0' && 'x' == stream.peek().toLowerCase() ) { stream.eat('x'); stream.eatWhile(tests.hex); return true; } // leading sign if ( ch == '+' || ch == '-' ) { stream.eat(tests.sign); ...
Author: Hans Engel Branched from CodeMirror's Scheme mode (by Koh Zi Han, based on implementation by Koh Zi Chun)
isNumber
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/clojure/clojure.js
BSD-3-Clause
function wordRegexp(words) { return new RegExp("^((" + words.join(")|(") + "))\\b"); }
Link to the project's GitHub page: https://github.com/pickhardt/coffeescript-codemirror-mode
wordRegexp
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
BSD-3-Clause
function tokenBase(stream, state) { // Handle scope changes if (stream.sol()) { var scopeOffset = state.scopes[0].offset; if (stream.eatSpace()) { var lineOffset = stream.indentation(); if (lineOffset > scopeOffset) { return 'in...
Link to the project's GitHub page: https://github.com/pickhardt/coffeescript-codemirror-mode
tokenBase
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
BSD-3-Clause
function tokenFactory(delimiter, outclass) { var singleline = delimiter.length == 1; return function tokenString(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^'"\/\\]/); if (stream.eat('\\')) { stream.next(); ...
Link to the project's GitHub page: https://github.com/pickhardt/coffeescript-codemirror-mode
tokenFactory
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
BSD-3-Clause
function longComment(stream, state) { while (!stream.eol()) { stream.eatWhile(/[^#]/); if (stream.match("###")) { state.tokenize = tokenBase; break; } stream.eatWhile("#"); } return "comment" }
Link to the project's GitHub page: https://github.com/pickhardt/coffeescript-codemirror-mode
longComment
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
BSD-3-Clause
function indent(stream, state, type) { type = type || 'coffee'; var indentUnit = 0; if (type === 'coffee') { for (var i = 0; i < state.scopes.length; i++) { if (state.scopes[i].type === 'coffee') { indentUnit = state.scopes[i].offset + conf.indentU...
Link to the project's GitHub page: https://github.com/pickhardt/coffeescript-codemirror-mode
indent
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
BSD-3-Clause
function dedent(stream, state) { if (state.scopes.length == 1) return; if (state.scopes[0].type === 'coffee') { var _indent = stream.indentation(); var _indent_index = -1; for (var i = 0; i < state.scopes.length; ++i) { if (_indent === state.scopes[i]....
Link to the project's GitHub page: https://github.com/pickhardt/coffeescript-codemirror-mode
dedent
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
BSD-3-Clause
function tokenLexer(stream, state) { var style = state.tokenize(stream, state); var current = stream.current(); // Handle '.' connected identifiers if (current === '.') { style = state.tokenize(stream, state); current = stream.current(); if (style ===...
Link to the project's GitHub page: https://github.com/pickhardt/coffeescript-codemirror-mode
tokenLexer
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/coffeescript/coffeescript.js
BSD-3-Clause
function transitState(currState, c) { var currLocation = currState.location; var ret; // Opening. if (currLocation == Location.PRE_SUBJECT && c == '<') ret = Location.WRITING_SUB_URI; else if(currLocation == Location.PRE_SUBJECT && c == '_') ret = Location.WRITING_BNODE_URI; else if(cur...
******************************************************* This script provides syntax highlighting support for the Ntriples format. Ntriples format specification: http://www.w3.org/TR/rdf-testcases/#ntriples *********************************************************
transitState
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/ntriples/ntriples.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/ntriples/ntriples.js
BSD-3-Clause
function makeKeywords(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; }
Author: Koh Zi Han, based on implementation by Koh Zi Chun
makeKeywords
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
BSD-3-Clause
function stateStack(indent, type, prev) { // represents a state stack object this.indent = indent; this.type = type; this.prev = prev; }
Author: Koh Zi Han, based on implementation by Koh Zi Chun
stateStack
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
BSD-3-Clause
function pushStack(state, indent, type) { state.indentStack = new stateStack(indent, type, state.indentStack); }
Author: Koh Zi Han, based on implementation by Koh Zi Chun
pushStack
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
BSD-3-Clause
function popStack(state) { state.indentStack = state.indentStack.prev; }
Author: Koh Zi Han, based on implementation by Koh Zi Chun
popStack
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
BSD-3-Clause
function isNumber(ch, stream){ if(/[0-9]/.exec(ch) != null){ stream.eatWhile(/[0-9]/); stream.eat(/\//); stream.eatWhile(/[0-9]/); if (stream.eol() || !(/[a-zA-Z\-\_\/]/.exec(stream.peek()))) return true; stream.backUp(stream.current().length - 1); /...
Scheme numbers are complicated unfortunately. Checks if we're looking at a number, which might be possibly a fraction. Also checks that it is not part of a longer identifier. Returns true/false accordingly.
isNumber
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/scheme/scheme.js
BSD-3-Clause
function chain(stream, state, parser) { state.tokenize = parser; return parser(stream, state); }
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
chain
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function inBlock(style, terminator, nextTokenize) { return function(stream, state) { while (!stream.eol()) { if (stream.match(terminator)) { popContext(state); state.tokenize = nextTokenize; break; } ...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
inBlock
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function pushContext(state, tagName) { var noIndent = doNotIndent.hasOwnProperty(tagName) || (state.context && state.context.doIndent); var newContext = { tagName: tagName, prev: state.context, indent: state.context ? state.context.indent + indentUnit : 0, ...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
pushContext
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function popContext(state) { if (state.context) { var oldContext = state.context; state.context = oldContext.prev; return oldContext; } // we shouldn't be here - it means we didn't have a context to pop return null; }
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
popContext
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function isTokenSeparated(stream) { return stream.sol() || stream.string.charAt(stream.start - 1) == " " || stream.string.charAt(stream.start - 1) == "\t"; }
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
isTokenSeparated
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseDocument(stream, state) { if(stream.eat("<")) { if(stream.eat("?")) { // processing instruction pushContext(state, TAG_INSTRUCTION); state.tokenize = parseProcessingInstructionStartTag; return STYLE_INSTRUCTION; ...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseDocument
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseElementTagName(stream, state) { // get the name of the tag var startPos = stream.pos; if(stream.match(/^[a-zA-Z_:][-a-zA-Z0-9_:.]*/)) { // element start-tag var tagName = stream.string.substring(startPos, stream.pos); pushContext(state, tagName);...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseElementTagName
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseElement(stream, state) { if(stream.match(/^\/>/)) { // self-closing tag popContext(state); state.tokenize = state.context == null ? parseDocument : parseElementBlock; return STYLE_ELEMENT_NAME; } else if(stream.eat(/^>/)) { state....
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseElement
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseAttribute(stream, state) { var quote = stream.next(); if(quote != "\"" && quote != "'") { // attribute must be quoted stream.skipToEnd(); state.tokenize = parseElement; return STYLE_ERROR; } state.tokParams.quote = qu...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseAttribute
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseAttributeValue(stream, state) { var ch = ""; while(!stream.eol()) { ch = stream.next(); if(ch == state.tokParams.quote) { // end quote found state.tokenize = parseElement; return STYLE_WORD; } else if(ch ==...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseAttributeValue
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseElementBlock(stream, state) { if(stream.eat("<")) { if(stream.match("?")) { pushContext(state, TAG_INSTRUCTION); state.tokenize = parseProcessingInstructionStartTag; return STYLE_INSTRUCTION; } else if(stream.match("!--")) { ...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseElementBlock
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseText(stream, state) { stream.eatWhile(/[^<]/); if(!stream.eol()) { // we cannot possibly be in the document context, // just inside an element block popContext(state); state.tokenize = parseElementBlock; } return STYLE_TEXT; ...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseText
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseProcessingInstructionStartTag(stream, state) { if(stream.match("xml", true, true)) { // xml declaration if(state.lineNumber > 1 || stream.pos > 5) { state.tokenize = parseDocument; stream.skipToEnd(); return STYLE_ERROR; ...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseProcessingInstructionStartTag
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseProcessingInstructionBody(stream, state) { stream.eatWhile(/[^?]/); if(stream.eat("?")) { if(stream.eat(">")) { popContext(state); state.tokenize = state.context == null ? parseDocument : parseElementBlock; } } return ...
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseProcessingInstructionBody
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseDeclarationVersion(stream, state) { state.tokenize = parseDeclarationEncoding; if(isTokenSeparated(stream) && stream.match(/^version( )*=( )*"([a-zA-Z0-9_.:]|\-)+"/)) { return STYLE_INSTRUCTION; } stream.skipToEnd(); return STYLE_ERROR; }
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseDeclarationVersion
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseDeclarationEncoding(stream, state) { state.tokenize = parseDeclarationStandalone; if(isTokenSeparated(stream) && stream.match(/^encoding( )*=( )*"[A-Za-z]([A-Za-z0-9._]|\-)*"/)) { return STYLE_INSTRUCTION; } return null; }
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseDeclarationEncoding
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseDeclarationStandalone(stream, state) { state.tokenize = parseDeclarationEndTag; if(isTokenSeparated(stream) && stream.match(/^standalone( )*=( )*"(yes|no)"/)) { return STYLE_INSTRUCTION; } return null; }
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseDeclarationStandalone
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function parseDeclarationEndTag(stream, state) { state.tokenize = parseDocument; if(stream.match("?>") && stream.eol()) { popContext(state); return STYLE_INSTRUCTION; } stream.skipToEnd(); return STYLE_ERROR; }
xmlpure.js Building upon and improving the CodeMirror 2 XML parser @author: Dror BG (deebug.dev@gmail.com) @date: August, 2011
parseDeclarationEndTag
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/codemirror/mode/xmlpure/xmlpure.js
BSD-3-Clause
function newDeferredPipe( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred( function( newDefer ) { jQuery.each( tuples, function( i, tuple ) { var fn = typeof fns[ i ] === "function" && fns[ i ]; // Deferred.done(function() { bind to newDefer or newDefer.resolve }) /...
Deprecated, please use `jQuery.migrateDisablePatches( "self-closed-tags" )` instead. @deprecated
newDeferredPipe
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery-migrate.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery-migrate.js
BSD-3-Clause
function markFunction( fn ) { fn[ expando ] = true; return fn; }
Mark a function for special use by jQuery selector module @param {Function} fn The function to mark
markFunction
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function assert( fn ) { var el = document.createElement( "fieldset" ); try { return !!fn( el ); } catch ( e ) { return false; } finally { // Remove from its parent by default if ( el.parentNode ) { el.parentNode.removeChild( el ); } // release memory in IE el = null; } }
Support testing using an element @param {Function} fn Passed the created element and returns a boolean result
assert
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function createInputPseudo( type ) { return function( elem ) { return nodeName( elem, "input" ) && elem.type === type; }; }
Returns a function to use in pseudos for input types @param {String} type
createInputPseudo
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function createButtonPseudo( type ) { return function( elem ) { return ( nodeName( elem, "input" ) || nodeName( elem, "button" ) ) && elem.type === type; }; }
Returns a function to use in pseudos for buttons @param {String} type
createButtonPseudo
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function createDisabledPseudo( disabled ) { // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable return function( elem ) { // Only certain elements can match :enabled or :disabled // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled // https://html...
Returns a function to use in pseudos for :enabled/:disabled @param {Boolean} disabled true for :disabled; false for :enabled
createDisabledPseudo
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function createPositionalPseudo( fn ) { return markFunction( function( argument ) { argument = +argument; return markFunction( function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- )...
Returns a function to use in pseudos for positionals @param {Function} fn
createPositionalPseudo
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function testContext( context ) { return context && typeof context.getElementsByTagName !== "undefined" && context; }
Checks a node for validity as a jQuery selector context @param {Element|Object=} context @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
testContext
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function setDocument( node ) { var subWindow, doc = node ? node.ownerDocument || node : preferredDoc; // Return early if doc is invalid or already selected // Support: IE 11+, Edge 17 - 18+ // IE/Edge sometimes throw a "Permission denied" error when strict-comparing // two documents; shallow comparisons work. ...
Sets document-related variables once based on the current document @param {Element|Object} [node] An element or document object to use to set the document @returns {Object} Returns the current document
setDocument
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function tokenize( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ selector + " " ]; if ( cached ) { return parseOnly ? 0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and first r...
Document sorting and removing duplicates @param {ArrayLike} results
tokenize
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { selector += tokens[ i ].value; } return selector; }
Document sorting and removing duplicates @param {ArrayLike} results
toSelector
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, skip = combinator.next, key = skip || dir, checkNonElements = base && key === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { ...
Document sorting and removing duplicates @param {ArrayLike} results
addCombinator
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function elementMatcher( matchers ) { return matchers.length > 1 ? function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { if ( !matchers[ i ]( elem, context, xml ) ) { return false; } } return true; } : matchers[ 0 ]; }
Document sorting and removing duplicates @param {ArrayLike} results
elementMatcher
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { find( selector, contexts[ i ], results ); } return results; }
Document sorting and removing duplicates @param {ArrayLike} results
multipleContexts
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( ( elem = unmatched[ i ] ) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { ...
Document sorting and removing duplicates @param {ArrayLike} results
condense
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { if ( postFilter && !postFilter[ expando ] ) { postFilter = setMatcher( postFilter ); } if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } return markFunction( function( ...
Document sorting and removing duplicates @param {ArrayLike} results
setMatcher
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[ tokens[ 0 ].type ], implicitRelative = leadingRelative || Expr.relative[ " " ], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-lev...
Document sorting and removing duplicates @param {ArrayLike} results
matcherFromTokens
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function matcherFromGroupMatchers( elementMatchers, setMatchers ) { var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched ...
Document sorting and removing duplicates @param {ArrayLike} results
matcherFromGroupMatchers
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, // We must always have either seed elements or outermost context elems = seed || byElement && Ex...
Document sorting and removing duplicates @param {ArrayLike} results
superMatcher
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function compile( selector, match /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ selector + " " ]; if ( !cached ) { // Generate a function of recursive functions that can be used to check each element if ( !match ) { match = tokenize( selector ); } ...
Document sorting and removing duplicates @param {ArrayLike} results
compile
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function select( selector, context, results, seed ) { var i, tokens, token, type, find, compiled = typeof selector === "function" && selector, match = !seed && tokenize( ( selector = compiled.selector || selector ) ); results = results || []; // Try to minimize operations if there is only one selector in the l...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
select
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
dir = function( elem, dir, until ) { var matched = [], truncate = until !== undefined; while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { if ( elem.nodeType === 1 ) { if ( truncate && jQuery( elem ).is( until ) ) { break; } matched.push( elem ); } } return matched; }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
dir
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
siblings = function( n, elem ) { var matched = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { matched.push( n ); } } return matched; }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
siblings
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function winnow( elements, qualifier, not ) { if ( isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { return !!qualifier.call( elem, i, elem ) !== not; } ); } // Single element if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem === qu...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
winnow
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function sibling( cur, dir ) { while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} return cur; }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
sibling
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function createOptions( options ) { var object = {}; jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { object[ flag ] = true; } ); return object; }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
createOptions
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
fire = function() { // Enforce single-firing locked = locked || options.once; // Execute callbacks for all pending executions, // respecting firingIndex overrides and runtime changes fired = firing = true; for ( ; queue.length; firingIndex = -1 ) { memory = queue.shift(); while ( ++firingInd...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
fire
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function Identity( v ) { return v; }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
Identity
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function Thrower( ex ) { throw ex; }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
Thrower
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function adoptValue( value, resolve, reject, noValue ) { var method; try { // Check for promise aspect first to privilege synchronous behavior if ( value && isFunction( ( method = value.promise ) ) ) { method.call( value ).done( resolve ).fail( reject ); // Other thenables } else if ( value && isFunctio...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
adoptValue
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function resolve( depth, deferred, handler, special ) { return function() { var that = this, args = arguments, mightThrow = function() { var returned, then; // Support: Promises/A+ section 2.3.3.3.3 // https://promisesaplus.com/#point-59 // Ignore double...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
resolve
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
mightThrow = function() { var returned, then; // Support: Promises/A+ section 2.3.3.3.3 // https://promisesaplus.com/#point-59 // Ignore double-resolution attempts if ( depth < maxDepth ) { return; } returned = handler.apply( that, args ); ...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
mightThrow
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
updateFunc = function( i ) { return function( value ) { resolveContexts[ i ] = this; resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; if ( !( --remaining ) ) { primary.resolveWith( resolveContexts, resolveValues ); } }; }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
updateFunc
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function completed() { document.removeEventListener( "DOMContentLoaded", completed ); window.removeEventListener( "load", completed ); jQuery.ready(); }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
completed
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
access = function( elems, fn, key, value, chainable, emptyGet, raw ) { var i = 0, len = elems.length, bulk = key == null; // Sets many values if ( toType( key ) === "object" ) { chainable = true; for ( i in key ) { access( elems, fn, i, key[ i ], true, emptyGet, raw ); } // Sets one value } else if ...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
access
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function fcamelCase( _all, letter ) { return letter.toUpperCase(); }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
fcamelCase
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function camelCase( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
camelCase
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
acceptData = function( owner ) { // Accepts only: // - Node // - Node.ELEMENT_NODE // - Node.DOCUMENT_NODE // - Object // - Any return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
acceptData
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function Data() { this.expando = jQuery.expando + Data.uid++; }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
Data
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function getData( data ) { if ( data === "true" ) { return true; } if ( data === "false" ) { return false; } if ( data === "null" ) { return null; } // Only convert to a number if it doesn't change the string if ( data === +data + "" ) { return +data; } if ( rbrace.test( data ) ) { return JSON.p...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
getData
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function dataAttr( elem, key, data ) { var name; // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
dataAttr
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
next = function() { jQuery.dequeue( elem, type ); }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
next
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
resolve
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
isAttached = function( elem ) { return jQuery.contains( elem.ownerDocument, elem ); }
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
isAttached
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
isHiddenWithinTree = function( elem, el ) { // isHiddenWithinTree might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; // Inline style trumps all return elem.style.display === "none" || elem.style.display === "" && // Otherwise, check comput...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
isHiddenWithinTree
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function adjustCSS( elem, prop, valueParts, tween ) { var adjusted, scale, maxIterations = 20, currentValue = tween ? function() { return tween.cur(); } : function() { return jQuery.css( elem, prop, "" ); }, initial = currentValue(), unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumbe...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
adjustCSS
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function getDefaultDisplay( elem ) { var temp, doc = elem.ownerDocument, nodeName = elem.nodeName, display = defaultDisplayMap[ nodeName ]; if ( display ) { return display; } temp = doc.body.appendChild( doc.createElement( nodeName ) ); display = jQuery.css( temp, "display" ); temp.parentNode.removeChi...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
getDefaultDisplay
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause
function showHide( elements, show ) { var display, elem, values = [], index = 0, length = elements.length; // Determine new display value for elements that need to change for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } display = elem.style.display; ...
A low-level selection function that works with jQuery's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with jQuery selector compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
showHide
javascript
pallets-eco/flask-debugtoolbar
src/flask_debugtoolbar/static/js/jquery.js
https://github.com/pallets-eco/flask-debugtoolbar/blob/master/src/flask_debugtoolbar/static/js/jquery.js
BSD-3-Clause