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
static get observedAttributes () { return ['rows', 'height', 'width', 'label', 'font', 'minLength', 'maxLength']; }
/import promiseInput from '../Input/index.js'; /*
observedAttributes
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
get label () { return this.getAttribute('label'); }
/import promiseInput from '../Input/index.js'; /*
label
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
set label (val) { this.setAttribute('label', val); this.setAttribute('aria-label', val); if (!this.placeholder) { this.placeholder = val; } }
/import promiseInput from '../Input/index.js'; /*
label
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
get height () { let height = this.getAttribute('height'); if (!isNaN(height) && !isNaN(parseFloat(height))) { height = height + 'px'; } return height; }
/import promiseInput from '../Input/index.js'; /*
height
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
set height (val) { this.setAttribute('height', val); }
/import promiseInput from '../Input/index.js'; /*
height
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
get width () { let width = this.getAttribute('width'); if (!isNaN(width) && !isNaN(parseFloat(width))) { width = width + 'px'; } return width; }
/import promiseInput from '../Input/index.js'; /*
width
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
set width (val) { this.setAttribute('width', val); }
/import promiseInput from '../Input/index.js'; /*
width
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
renderAttribute (name, keep) { INPUT.renderAttribute.call(this, name, keep); }
/import promiseInput from '../Input/index.js'; /*
renderAttribute
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
render () { UiTextarea.observedAttributes.forEach(attr => { this.renderAttribute(attr, true); }); }
/import promiseInput from '../Input/index.js'; /*
render
javascript
yued-fe/lulu
theme/hope/ui/Textarea/index.js
https://github.com/yued-fe/lulu/blob/master/theme/hope/ui/Textarea/index.js
MIT
LightTip = function() { this.el = {}; return this; }
@Range.js @author xunxuzhang @version Created: 15-07-20
LightTip
javascript
yued-fe/lulu
theme/modern/js/common/all.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/common/all.js
MIT
function isNative( fn ) { return rnative.test( fn + "" ); }
For feature detection @param {Function} fn The function to test for native support
isNative
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.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
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function assert( fn ) { var div = document.createElement("div"); try { return fn( div ); } catch (e) { return false; } finally { // release memory in IE div = null; } }
Support testing using an element @param {Function} fn Passed the created div and expects a boolean result
assert
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function Sizzle( selector, context, results, seed ) { var match, elem, m, nodeType, // QSA vars i, groups, old, nid, newContext, newSelector; if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { setDocument( context ); } context = context || document; results = results || [];...
Support testing using an element @param {Function} fn Passed the created div and expects a boolean result
Sizzle
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function siblingCheck( a, b ) { var cur = a && b && a.nextSibling; for ( ; cur; cur = cur.nextSibling ) { if ( cur === b ) { return -1; } } return a ? 1 : -1; }
Sets document-related variables once based on the current document @param {Element|Object} [doc] An element or document object to use to set the document @returns {Object} Returns the current document
siblingCheck
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; }
Sets document-related variables once based on the current document @param {Element|Object} [doc] An element or document object to use to set the document @returns {Object} Returns the current document
createInputPseudo
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; }
Sets document-related variables once based on the current document @param {Element|Object} [doc] An element or document object to use to set the document @returns {Object} Returns the current document
createButtonPseudo
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.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-- ) {...
Sets document-related variables once based on the current document @param {Element|Object} [doc] An element or document object to use to set the document @returns {Object} Returns the current document
createPositionalPseudo
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
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...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
tokenize
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.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
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, checkNonElements = base && combinator.dir === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { while ( (elem = elem[ dir ]) ) { ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
addCombinator
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.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
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.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
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.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
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.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
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function matcherFromGroupMatchers( elementMatchers, setMatchers ) { // A counter to specify which element is currently being matched var matcherCachedRuns = 0, bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, expandContext ) { var e...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
matcherFromGroupMatchers
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
superMatcher = function( seed, context, xml, results, expandContext ) { var elem, j, matcher, setMatched = [], matchedCount = 0, i = "0", unmatched = seed && [], outermost = expandContext != null, contextBackup = outermostContext, // We must always have either seed elements or context ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
superMatcher
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.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
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function select( selector, context, results, seed ) { var i, tokens, token, type, find, match = tokenize( selector ); if ( !seed ) { // Try to minimize operations if there is only one group if ( match.length === 1 ) { // Take a shortcut and set the context if the root selector is an ID tokens = match[0]...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
select
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function sibling( cur, dir ) { do { cur = cur[ dir ]; } while ( cur && cur.nodeType !== 1 ); return cur; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
sibling
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function winnow( elements, qualifier, keep ) { // Can't pass null or undefined to indexOf in Firefox 4 // Set to 0 to skip string check qualifier = qualifier || 0; if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep(elements, function( elem, i ) { var retVal = !!qualifier.call( elem, i, elem ); ret...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
winnow
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function createSafeFragment( document ) { var list = nodeNames.split( "|" ), safeFrag = document.createDocumentFragment(); if ( safeFrag.createElement ) { while ( list.length ) { safeFrag.createElement( list.pop() ); } } return safeFrag; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
createSafeFragment
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function findOrAppend( elem, tag ) { return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) ); }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
findOrAppend
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function disableScript( elem ) { var attr = elem.getAttributeNode("type"); elem.type = ( attr && attr.specified ) + "/" + elem.type; return elem; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
disableScript
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function restoreScript( elem ) { var match = rscriptTypeMasked.exec( elem.type ); if ( match ) { elem.type = match[1]; } else { elem.removeAttribute("type"); } return elem; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
restoreScript
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function setGlobalEval( elems, refElements ) { var elem, i = 0; for ( ; (elem = elems[i]) != null; i++ ) { jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); } }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
setGlobalEval
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function cloneCopyEvent( src, dest ) { if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { return; } var type, i, l, oldData = jQuery._data( src ), curData = jQuery._data( dest, oldData ), events = oldData.events; if ( events ) { delete curData.handle; curData.events = {}; for ( type in events ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
cloneCopyEvent
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function fixCloneNodeIssues( src, dest ) { var nodeName, data, e; // We do not need to do anything for non-Elements if ( dest.nodeType !== 1 ) { return; } nodeName = dest.nodeName.toLowerCase(); // IE6-8 copies events bound via attachEvent when using cloneNode. if ( !jQuery.support.noCloneEvent && dest[ jQu...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
fixCloneNodeIssues
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function getAll( context, tag ) { var elems, elem, i = 0, found = typeof context.getElementsByTagName !== "undefined" ? context.getElementsByTagName( tag || "*" ) : typeof context.querySelectorAll !== "undefined" ? context.querySelectorAll( tag || "*" ) : undefined; if ( !found ) { for ( found = [], elem...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
getAll
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function fixDefaultChecked( elem ) { if ( manipulation_rcheckableType.test( elem.type ) ) { elem.defaultChecked = elem.checked; } }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
fixDefaultChecked
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function vendorPropName( style, name ) { // shortcut for names that are not vendor prefixed if ( name in style ) { return name; } // check for vendor prefixed names var capName = name.charAt(0).toUpperCase() + name.slice(1), origName = name, i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
vendorPropName
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function isHidden( elem, el ) { // isHidden might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
isHidden
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function showHide( elements, show ) { var elem, values = [], index = 0, length = elements.length; for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } values[ index ] = jQuery._data( elem, "olddisplay" ); if ( show ) { // Reset the inline display of thi...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
showHide
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function setPositiveNumber( elem, value, subtract ) { var matches = rnumsplit.exec( value ); return matches ? // Guard against undefined "subtract", e.g., when used as in cssHooks Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : value; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
setPositiveNumber
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { var i = extra === ( isBorderBox ? "border" : "content" ) ? // If we already have the right measurement, avoid augmentation 4 : // Otherwise initialize for horizontal or vertical properties name === "width" ? 1 : 0, val = 0; for ( ; ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
augmentWidthOrHeight
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function getWidthOrHeight( elem, name, extra ) { // Start with offset property, which is equivalent to the border-box value var valueIsBorderBox = true, val = name === "width" ? elem.offsetWidth : elem.offsetHeight, styles = getStyles( elem ), isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSiz...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
getWidthOrHeight
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function css_defaultDisplay( nodeName ) { var doc = document, display = elemdisplay[ nodeName ]; if ( !display ) { display = actualDisplay( nodeName, doc ); // If the simple way fails, read from inside an iframe if ( display === "none" || !display ) { // Use the already-created iframe if possible ifra...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
css_defaultDisplay
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function actualDisplay( name, doc ) { var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), display = jQuery.css( elem[0], "display" ); elem.remove(); return display; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
actualDisplay
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
add = function( key, value ) { // If value is a function, invoke it and return its value value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value ); s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
add
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function buildParams( prefix, obj, traditional, add ) { var name; if ( jQuery.isArray( obj ) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional || rbracket.test( prefix ) ) { // Treat each array item as a scalar. add( prefix, v ); } else { // Item is non-scalar ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
buildParams
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, i = 0, dataTypes = dataTypeE...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
addToPrefiltersOrTransports
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { var inspected = {}, seekingTransport = ( structure === transports ); function inspect( dataType ) { var selected; inspected[ dataType ] = true; jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
inspectPrefiltersOrTransports
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function inspect( dataType ) { var selected; inspected[ dataType ] = true; jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); if( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspe...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
inspect
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } retur...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
ajaxExtend
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Called once if ( state === 2 ) { return; } // State is "done" now state = 2; // Clear timeout if it exists if ( timeoutTimer ) { cle...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
done
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function ajaxHandleResponses( s, jqXHR, responses ) { var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes, responseFields = s.responseFields; // Fill responseXXX fields for ( type in responseFields ) { if ( type in responses ) { jqXHR[ responseFields[type] ] = resp...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
ajaxHandleResponses
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function ajaxConvert( s, response ) { var conv, conv2, current, tmp, converters = {}, i = 0, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(), prev = dataTypes[ 0 ]; // Apply the dataFilter if provided if ( s.dataFilter ) { response = s.dataFi...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
ajaxConvert
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function createStandardXHR() { try { return new window.XMLHttpRequest(); } catch( e ) {} }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
createStandardXHR
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function createActiveXHR() { try { return new window.ActiveXObject("Microsoft.XMLHTTP"); } catch( e ) {} }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
createActiveXHR
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function createFxNow() { setTimeout(function() { fxNow = undefined; }); return ( fxNow = jQuery.now() ); }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
createFxNow
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function createTweens( animation, props ) { jQuery.each( props, function( prop, value ) { var collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( collection[ index ].call( animation, prop, value ) ) { // we...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
createTweens
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function Animation( elem, properties, options ) { var result, stopped, index = 0, length = animationPrefilters.length, deferred = jQuery.Deferred().always( function() { // don't match elem in the :animated selector delete tick.elem; }), tick = function() { if ( stopped ) { return false; } ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
Animation
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
tick = function() { if ( stopped ) { return false; } var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) temp = remaining / animation.duration || 0, ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
tick
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function propFilter( props, specialEasing ) { var index, name, easing, value, hooks; // camelCase, specialEasing and expand cssHook pass for ( index in props ) { name = jQuery.camelCase( index ); easing = specialEasing[ name ]; value = props[ index ]; if ( jQuery.isArray( value ) ) { easing = value[ 1 ];...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
propFilter
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function defaultPrefilter( elem, props, opts ) { /*jshint validthis:true */ var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire, anim = this, style = elem.style, orig = {}, handled = [], hidden = elem.nodeType && isHidden( elem ); // handle queue: false promises if ( !opts.queue ) { ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
defaultPrefilter
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
Tween
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
doAnimation = function() { // Operate on a copy of prop so per-property easing won't be lost var anim = Animation( this, jQuery.extend( {}, prop ), optall ); doAnimation.finish = function() { anim.stop( true ); }; // Empty animations, or finishing resolves immediately if ( empty || jQuery._...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
doAnimation
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
stopQueue = function( hooks ) { var stop = hooks.stop; delete hooks.stop; stop( gotoEnd ); }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
stopQueue
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function genFx( type, includeWidth ) { var which, attrs = { height: type }, i = 0; // if we include width, step value is 1 to do all cssExpand values, // if we don't include width, step value is 2 to skip over Left and Right includeWidth = includeWidth? 1 : 0; for( ; i < 4 ; i += 2 - includeWidth ) { which ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
genFx
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function getWindow( elem ) { return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false; }
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
getWindow
javascript
yued-fe/lulu
theme/modern/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/jquery.js
MIT
function isType(type) { return function(obj) { return {}.toString.call(obj) == "[object " + type + "]" } }
util-lang.js - The minimal language enhancement
isType
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function cid() { return _cid++ }
util-lang.js - The minimal language enhancement
cid
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function dirname(path) { return path.match(DIRNAME_RE)[0] }
util-path.js - The utilities for operating path such as id, uri
dirname
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function realpath(path) { // /a/b/./c/./d ==> /a/b/c/d path = path.replace(DOT_RE, "/") /* @author wh1100717 a//b/c ==> a/b/c a///b/////c ==> a/b/c DOUBLE_DOT_RE matches a/b/c//../d path correctly only if replace // with / first */ path = path.replace(MULTI_SLASH_RE, "$1/") // a/b/c/../../...
util-path.js - The utilities for operating path such as id, uri
realpath
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function normalize(path) { var last = path.length - 1 var lastC = path.charAt(last) // If the uri ends with `#`, just return it without '#' if (lastC === "#") { return path.substring(0, last) } return (path.substring(last - 2) === ".js" || path.indexOf("?") > 0 || lastC === "/") ? path : p...
util-path.js - The utilities for operating path such as id, uri
normalize
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function parseAlias(id) { var alias = data.alias return alias && isString(alias[id]) ? alias[id] : id }
util-path.js - The utilities for operating path such as id, uri
parseAlias
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function parsePaths(id) { var paths = data.paths var m if (paths && (m = id.match(PATHS_RE)) && isString(paths[m[1]])) { id = paths[m[1]] + m[2] } return id }
util-path.js - The utilities for operating path such as id, uri
parsePaths
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function parseVars(id) { var vars = data.vars if (vars && id.indexOf("{") > -1) { id = id.replace(VARS_RE, function(m, key) { return isString(vars[key]) ? vars[key] : m }) } return id }
util-path.js - The utilities for operating path such as id, uri
parseVars
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function parseMap(uri) { var map = data.map var ret = uri if (map) { for (var i = 0, len = map.length; i < len; i++) { var rule = map[i] ret = isFunction(rule) ? (rule(uri) || uri) : uri.replace(rule[0], rule[1]) // Only apply the first matched rule if (ret !== u...
util-path.js - The utilities for operating path such as id, uri
parseMap
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function addBase(id, refUri) { var ret var first = id.charAt(0) // Absolute if (ABSOLUTE_RE.test(id)) { ret = id } // Relative else if (first === ".") { ret = realpath((refUri ? dirname(refUri) : data.cwd) + id) } // Root else if (first === "/") { var m = data.cwd.match(ROOT_DIR_RE) ...
util-path.js - The utilities for operating path such as id, uri
addBase
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function id2Uri(id, refUri) { if (!id) return "" id = parseAlias(id) id = parsePaths(id) id = parseVars(id) id = normalize(id) var uri = addBase(id, refUri) uri = parseMap(uri) return uri }
util-path.js - The utilities for operating path such as id, uri
id2Uri
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function getScriptAbsoluteSrc(node) { return node.hasAttribute ? // non-IE6/7 node.src : // see http://msdn.microsoft.com/en-us/library/ms536429(VS.85).aspx node.getAttribute("src", 4) }
util-path.js - The utilities for operating path such as id, uri
getScriptAbsoluteSrc
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function request(url, callback, charset) { // console.log(url); var node = doc.createElement("script") if (charset) { var cs = isFunction(charset) ? charset(url) : charset if (cs) { node.charset = cs } } addOnload(node, callback, url) node.async = true node.src = url // For some ca...
util-request.js - The utilities for requesting script and style files ref: tests/research/load-js-css/test.html
request
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function addOnload(node, callback, url) { var supportOnload = "onload" in node if (supportOnload) { node.onload = onload node.onerror = function() { emit("error", { uri: url, node: node }) onload() } } else { node.onreadystatechange = function() { if (/loaded|complete/.test(no...
util-request.js - The utilities for requesting script and style files ref: tests/research/load-js-css/test.html
addOnload
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function onload() { // Ensure only run once and handle memory leak in IE node.onload = node.onerror = node.onreadystatechange = null // Remove the script to reduce memory leak if (!data.debug) { head.removeChild(node) } // Dereference the node node = null callback() }
util-request.js - The utilities for requesting script and style files ref: tests/research/load-js-css/test.html
onload
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function getCurrentScript() { if (currentlyAddingScript) { return currentlyAddingScript } // For IE6-9 browsers, the script onload event may not fire right // after the script is evaluated. Kris Zyp found that it // could query the script nodes and the one that is in "interactive" // mode indicates the...
util-request.js - The utilities for requesting script and style files ref: tests/research/load-js-css/test.html
getCurrentScript
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function parseDependencies(code) { var ret = [] code.replace(SLASH_RE, "") .replace(REQUIRE_RE, function(m, m1, m2) { if (m2) { ret.push(m2) } }) return ret }
util-deps.js - The parser for dependencies ref: tests/research/parse-dependencies/test.html
parseDependencies
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function Module(uri, deps) { this.uri = uri this.dependencies = deps || [] this.exports = null this.status = 0 // console.log(uri); // Who depends on me this._waitings = {} // The number of unloaded dependencies this._remain = 0 }
module.js - The core of module loader
Module
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function sendRequest() { seajs.request(emitData.requestUri, emitData.onRequest, emitData.charset) }
module.js - The core of module loader
sendRequest
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function onRequest() { delete fetchingList[requestUri] fetchedList[requestUri] = true // Save meta data of anonymous module if (anonymousMeta) { Module.save(uri, anonymousMeta) anonymousMeta = null } // Call callbacks var m, mods = callbackList[requestUri] delete callbackLi...
module.js - The core of module loader
onRequest
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
function require(id) { return Module.get(require.resolve(id)).exec() }
module.js - The core of module loader
require
javascript
yued-fe/lulu
theme/modern/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/modern/js/plugin/sea.js
MIT
U = function(a, b) { if (!a) { return ''; } b = b || 'x'; var c = ''; var d = 0; var e; for (d; d < a.length; d += 1) a.charCodeAt(d) >= 55296 && a.charCodeAt(d) <= 56319 ? (e = (65536 + 1024 * (Number(a.charCodeAt(d)) - 55296) + Number(a.charCodeAt(d...
@Keyboard.js @author zhangxinxu @version Created: 17-06-13
U
javascript
yued-fe/lulu
theme/peak/js/common/all.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/common/all.js
MIT
U = function(a, b) { if (!a) { return ''; } b = b || 'x'; var c = ''; var d = 0; var e; for (d; d < a.length; d += 1) a.charCodeAt(d) >= 55296 && a.charCodeAt(d) <= 56319 ? (e = (65536 + 1024 * (Number(a.charCodeAt(d)) - 55296) + Number(a.charCodeAt(d...
@Keyboard.js @author zhangxinxu @version Created: 17-06-13
U
javascript
yued-fe/lulu
theme/peak/js/common/ui/Keyboard.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/common/ui/Keyboard.js
MIT
function isNative( fn ) { return rnative.test( fn + "" ); }
For feature detection @param {Function} fn The function to test for native support
isNative
javascript
yued-fe/lulu
theme/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/plugin/jquery.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
yued-fe/lulu
theme/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/plugin/jquery.js
MIT
function assert( fn ) { var div = document.createElement("div"); try { return fn( div ); } catch (e) { return false; } finally { // release memory in IE div = null; } }
Support testing using an element @param {Function} fn Passed the created div and expects a boolean result
assert
javascript
yued-fe/lulu
theme/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/plugin/jquery.js
MIT
function Sizzle( selector, context, results, seed ) { var match, elem, m, nodeType, // QSA vars i, groups, old, nid, newContext, newSelector; if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { setDocument( context ); } context = context || document; results = results || [];...
Support testing using an element @param {Function} fn Passed the created div and expects a boolean result
Sizzle
javascript
yued-fe/lulu
theme/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/plugin/jquery.js
MIT
function siblingCheck( a, b ) { var cur = a && b && a.nextSibling; for ( ; cur; cur = cur.nextSibling ) { if ( cur === b ) { return -1; } } return a ? 1 : -1; }
Sets document-related variables once based on the current document @param {Element|Object} [doc] An element or document object to use to set the document @returns {Object} Returns the current document
siblingCheck
javascript
yued-fe/lulu
theme/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/plugin/jquery.js
MIT
function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; }
Sets document-related variables once based on the current document @param {Element|Object} [doc] An element or document object to use to set the document @returns {Object} Returns the current document
createInputPseudo
javascript
yued-fe/lulu
theme/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/plugin/jquery.js
MIT
function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; }
Sets document-related variables once based on the current document @param {Element|Object} [doc] An element or document object to use to set the document @returns {Object} Returns the current document
createButtonPseudo
javascript
yued-fe/lulu
theme/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/plugin/jquery.js
MIT