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
function createPrimitiveTypeChecker(expectedType) { function validate(props, propName, componentName, location, propFullName, secret) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== expectedType) { // `propValue` being instance of, say, date/regex...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createPrimitiveTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName, secret) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== expectedType) { // `propValue` being instance of, say, date/regexp, pass the 'object' // check, but we can offer ...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createAnyTypeChecker() { return createChainableTypeChecker(emptyFunction.thatReturnsNull); }
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createAnyTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createArrayOfTypeChecker(typeChecker) { function validate(props, propName, componentName, location, propFullName) { if (typeof typeChecker !== 'function') { return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arra...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createArrayOfTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { if (typeof typeChecker !== 'function') { return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); } var propValue = props[propName]...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createElementTypeChecker() { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; if (!isValidElement(propValue)) { var propType = getPropType(propValue); return new PropTypeError('Invalid ' + location + ' `' + propFullName...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createElementTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; if (!isValidElement(propValue)) { var propType = getPropType(propValue); return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` sup...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createInstanceTypeChecker(expectedClass) { function validate(props, propName, componentName, location, propFullName) { if (!(props[propName] instanceof expectedClass)) { var expectedClassName = expectedClass.name || ANONYMOUS; var actualClassName = getClassName(props[propName]); ...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createInstanceTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { if (!(props[propName] instanceof expectedClass)) { var expectedClassName = expectedClass.name || ANONYMOUS; var actualClassName = getClassName(props[propName]); return new PropTypeError('Invalid ' + location + ' `'...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createEnumTypeChecker(expectedValues) { if (!Array.isArray(expectedValues)) { process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0; return emptyFunction.thatReturnsNull; } function validate(props, propName...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createEnumTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; for (var i = 0; i < expectedValues.length; i++) { if (is(propValue, expectedValues[i])) { return null; } } var valuesString = JSON.stringify(expectedValues); ...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createObjectOfTypeChecker(typeChecker) { function validate(props, propName, componentName, location, propFullName) { if (typeof typeChecker !== 'function') { return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside obj...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createObjectOfTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { if (typeof typeChecker !== 'function') { return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); } var propValue = props[propName...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createUnionTypeChecker(arrayOfTypeCheckers) { if (!Array.isArray(arrayOfTypeCheckers)) { process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; return emptyFunction.thatReturnsNull; } for (var i = 0; i ...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createUnionTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { for (var i = 0; i < arrayOfTypeCheckers.length; i++) { var checker = arrayOfTypeCheckers[i]; if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { return null; ...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createNodeChecker() { function validate(props, propName, componentName, location, propFullName) { if (!isNode(props[propName])) { return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); } return...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createNodeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { if (!isNode(props[propName])) { return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); } return null; }
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createShapeTypeChecker(shapeTypes) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { return new PropTypeError('Invalid ' + location + ' `' + propFullNam...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createShapeTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied t...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createStrictShapeTypeChecker(shapeTypes) { function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { return new PropTypeError('Invalid ' + location + ' `' + propF...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
createStrictShapeTypeChecker
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function validate(props, propName, componentName, location, propFullName) { var propValue = props[propName]; var propType = getPropType(propValue); if (propType !== 'object') { return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied t...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
validate
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function isNode(propValue) { switch (typeof propValue) { case 'number': case 'string': case 'undefined': return true; case 'boolean': return !propValue; case 'object': if (Array.isArray(propValue)) { return propValue.every(isNode); } if...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
isNode
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function isSymbol(propType, propValue) { // Native Symbol. if (propType === 'symbol') { return true; } // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' if (propValue['@@toStringTag'] === 'Symbol') { return true; } // Fallback for non-spec compliant Symbols which are pol...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
isSymbol
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getPropType(propValue) { var propType = typeof propValue; if (Array.isArray(propValue)) { return 'array'; } if (propValue instanceof RegExp) { // Old webkits (at least until Android 4.0) return 'function' rather than // 'object' for typeof a RegExp. We'll normalize this here s...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
getPropType
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getPreciseType(propValue) { if (typeof propValue === 'undefined' || propValue === null) { return '' + propValue; } var propType = getPropType(propValue); if (propType === 'object') { if (propValue instanceof Date) { return 'date'; } else if (propValue instanceof RegExp...
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
getPreciseType
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getPostfixForTypeWarning(value) { var type = getPreciseType(value); switch (type) { case 'array': case 'object': return 'an ' + type; case 'boolean': case 'date': case 'regexp': return 'a ' + type; default: return type; } }
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
getPostfixForTypeWarning
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getClassName(propValue) { if (!propValue.constructor || !propValue.constructor.name) { return ANONYMOUS; } return propValue.constructor.name; }
We use an Error-like object for backward compatibility as people may call PropTypes directly and inspect their output. However, we don't use real Errors anymore. We don't inspect their stack anyway, and creating them is prohibitively expensive if they are created too often, such as what happens in oneOfType() for any t...
getClassName
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function markFunction( fn ) { fn[ expando ] = true; return fn; }
Mark a function for special use by Sizzle @param {Function} fn The function to mark
markFunction
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function addHandle( attrs, handler ) { var arr = attrs.split("|"), i = arr.length; while ( i-- ) { Expr.attrHandle[ arr[i] ] = handler; } }
Adds the same handler for all of the specified attrs @param {String} attrs Pipe-separated list of attributes @param {Function} handler The method that will be applied
addHandle
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function siblingCheck( a, b ) { var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && a.sourceIndex - b.sourceIndex; // Use IE sourceIndex if available on both nodes if ( diff ) { return diff; } // Check if b follows a if ( cur ) { while ( (cur = cur.nextSibling) ) { if ( cur === b...
Checks document order of two siblings @param {Element} a @param {Element} b @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
siblingCheck
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; }
Returns a function to use in pseudos for input types @param {String} type
createInputPseudo
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; }
Returns a function to use in pseudos for buttons @param {String} type
createButtonPseudo
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function testContext( context ) { return context && typeof context.getElementsByTagName !== "undefined" && context; }
Checks a node for validity as a Sizzle context @param {Element|Object=} context @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
testContext
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { selector += tokens[i].value; } return selector; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
toSelector
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 ) { ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
addCombinator
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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]; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
elementMatcher
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[i], results ); } return results; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
multipleContexts
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 ) { m...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
condense
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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( s...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
setMatcher
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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-level c...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
matcherFromTokens
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
matcherFromGroupMatchers
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 && Exp...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
superMatcher
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
dir
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
siblings
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function nodeName( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
nodeName
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function winnow( elements, qualifier, not ) { if ( jQuery.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...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
winnow
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function sibling( cur, dir ) { while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} return cur; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
sibling
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
createOptions
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
fire
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function Identity( v ) { return v; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
Identity
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function Thrower( ex ) { throw ex; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
Thrower
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function adoptValue( value, resolve, reject, noValue ) { var method; try { // Check for promise aspect first to privilege synchronous behavior if ( value && jQuery.isFunction( ( method = value.promise ) ) ) { method.call( value ).done( resolve ).fail( reject ); // Other thenables } else if ( value && jQ...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
adoptValue
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
resolve
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
mightThrow
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
updateFunc = function( i ) { return function( value ) { resolveContexts[ i ] = this; resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; if ( !( --remaining ) ) { master.resolveWith( resolveContexts, resolveValues ); } }; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
updateFunc
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function completed() { document.removeEventListener( "DOMContentLoaded", completed ); window.removeEventListener( "load", completed ); jQuery.ready(); }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
completed
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
access = function( elems, fn, key, value, chainable, emptyGet, raw ) { var i = 0, len = elems.length, bulk = key == null; // Sets many values if ( jQuery.type( key ) === "object" ) { chainable = true; for ( i in key ) { access( elems, fn, i, key[ i ], true, emptyGet, raw ); } // Sets one value } els...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
access
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
acceptData
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function Data() { this.expando = jQuery.expando + Data.uid++; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
Data
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
getData
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
dataAttr
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
next = function() { jQuery.dequeue( elem, type ); }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
next
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
resolve
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
isHiddenWithinTree
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
swap = function( elem, options, callback, args ) { var ret, name, old = {}; // Remember the old values, and insert the new ones for ( name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } ret = callback.apply( elem, args || [] ); // Revert the old values for ( nam...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
swap
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function adjustCSS( elem, prop, valueParts, tween ) { var adjusted, scale = 1, maxIterations = 20, currentValue = tween ? function() { return tween.cur(); } : function() { return jQuery.css( elem, prop, "" ); }, initial = currentValue(), unit = valueParts && valueParts[ 3 ] || ( jQuery.cs...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
adjustCSS
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
getDefaultDisplay
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
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 Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
showHide
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getAll( context, tag ) { // Support: IE <=9 - 11 only // Use typeof to avoid zero-argument method invocation on host objects (#15151) var ret; if ( typeof context.getElementsByTagName !== "undefined" ) { ret = context.getElementsByTagName( tag || "*" ); } else if ( typeof context.querySelectorAll !==...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
getAll
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function setGlobalEval( elems, refElements ) { var i = 0, l = elems.length; for ( ; i < l; i++ ) { dataPriv.set( elems[ i ], "globalEval", !refElements || dataPriv.get( refElements[ i ], "globalEval" ) ); } }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
setGlobalEval
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function buildFragment( elems, context, scripts, selection, ignored ) { var elem, tmp, tag, wrap, contains, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length; for ( ; i < l; i++ ) { elem = elems[ i ]; if ( elem || elem === 0 ) { // Add nodes directly if ( jQuery....
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
buildFragment
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function returnTrue() { return true; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
returnTrue
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function returnFalse() { return false; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
returnFalse
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
safeActiveElement
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function on( elem, types, selector, data, fn, one ) { var origFn, type; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // ( types-Object, data ) data = data || selector; selector = undefined; } f...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
on
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function manipulationTarget( elem, content ) { if ( nodeName( elem, "table" ) && nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { return jQuery( ">tbody", elem )[ 0 ] || elem; } return elem; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
manipulationTarget
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function disableScript( elem ) { elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; return elem; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
disableScript
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function restoreScript( elem ) { var match = rscriptTypeMasked.exec( elem.type ); if ( match ) { elem.type = match[ 1 ]; } else { elem.removeAttribute( "type" ); } return elem; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
restoreScript
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function cloneCopyEvent( src, dest ) { var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; if ( dest.nodeType !== 1 ) { return; } // 1. Copy private data: events, handlers, etc. if ( dataPriv.hasData( src ) ) { pdataOld = dataPriv.access( src ); pdataCur = dataPriv.set( dest, pdataOld ); even...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
cloneCopyEvent
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && rcheckableType.test( src.type ) ) { dest.checked = src.checked; // Fails to return the selected option to the default selected sta...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
fixInput
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function domManip( collection, args, callback, ignored ) { // Flatten any nested arrays args = concat.apply( [], args ); var fragment, first, scripts, hasScripts, node, doc, i = 0, l = collection.length, iNoClone = l - 1, value = args[ 0 ], isFunction = jQuery.isFunction( value ); // We can't cloneNode...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
domManip
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function remove( elem, selector, keepData ) { var node, nodes = selector ? jQuery.filter( selector, elem ) : elem, i = 0; for ( ; ( node = nodes[ i ] ) != null; i++ ) { if ( !keepData && node.nodeType === 1 ) { jQuery.cleanData( getAll( node ) ); } if ( node.parentNode ) { if ( keepData && jQuery.co...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
remove
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
getStyles = function( elem ) { // Support: IE <=11 only, Firefox <=30 (#15098, #14150) // IE throws on elements created in popups // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" var view = elem.ownerDocument.defaultView; if ( !view || !view.opener ) { view = window; } ...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
getStyles
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function computeStyleTests() { // This is a singleton, we need to execute it only once if ( !div ) { return; } div.style.cssText = "box-sizing:border-box;" + "position:relative;display:block;" + "margin:auto;border:1px;padding:1px;" + "top:1%;width:50%"; div.innerHTML = ""; documentElement....
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
computeStyleTests
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function curCSS( elem, name, computed ) { var width, minWidth, maxWidth, ret, // Support: Firefox 51+ // Retrieving style before computed somehow // fixes an issue with getting wrong values // on detached elements style = elem.style; computed = computed || getStyles( elem ); // getPropertyValue is neede...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
curCSS
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function addGetHookIf( conditionFn, hookFn ) { // Define the hook, we'll check on the first run if it's really needed. return { get: function() { if ( conditionFn() ) { // Hook not needed (or it's not possible to use it due // to missing dependency), remove it. delete this.get; return; } ...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
addGetHookIf
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function vendorPropName( name ) { // Shortcut for names that are not vendor prefixed if ( name in emptyStyle ) { return name; } // Check for vendor prefixed names var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( nam...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
vendorPropName
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function finalPropName( name ) { var ret = jQuery.cssProps[ name ]; if ( !ret ) { ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; } return ret; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
finalPropName
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function setPositiveNumber( elem, value, subtract ) { // Any relative (+/-) values have already been // normalized at this point var matches = rcssNum.exec( value ); return matches ? // Guard against undefined "subtract", e.g., when used as in cssHooks Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( match...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
setPositiveNumber
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { var i, val = 0; // If we already have the right measurement, avoid augmentation if ( extra === ( isBorderBox ? "border" : "content" ) ) { i = 4; // Otherwise initialize for horizontal or vertical properties } else { i = name === "wid...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
augmentWidthOrHeight
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function getWidthOrHeight( elem, name, extra ) { // Start with computed style var valueIsBorderBox, styles = getStyles( elem ), val = curCSS( elem, name, styles ), isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; // Computed unit is not pixels. Stop here and return. if ( rnumno...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
getWidthOrHeight
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
Tween
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function schedule() { if ( inProgress ) { if ( document.hidden === false && window.requestAnimationFrame ) { window.requestAnimationFrame( schedule ); } else { window.setTimeout( schedule, jQuery.fx.interval ); } jQuery.fx.tick(); } }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
schedule
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createFxNow() { window.setTimeout( function() { fxNow = undefined; } ); return ( fxNow = jQuery.now() ); }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
createFxNow
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function genFx( type, includeWidth ) { var which, i = 0, attrs = { height: type }; // If we include width, step value is 1 to do all cssExpand values, // otherwise step value is 2 to skip over Left and Right includeWidth = includeWidth ? 1 : 0; for ( ; i < 4; i += 2 - includeWidth ) { which = cssExpand[ i ]...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
genFx
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function createTween( value, prop, animation ) { var tween, collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { // We're don...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
createTween
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT
function defaultPrefilter( elem, props, opts ) { var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, isBox = "width" in props || "height" in props, anim = this, orig = {}, style = elem.style, hidden = elem.nodeType && isHiddenWithinTree( elem ), dataShow = dataPriv.get( elem, "fxsh...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
defaultPrefilter
javascript
agermanidis/livepython
dist/main.js
https://github.com/agermanidis/livepython/blob/master/dist/main.js
MIT