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 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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/jquery.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/js/plugin/sea.js
MIT
function cid() { return _cid++ }
util-lang.js - The minimal language enhancement
cid
javascript
yued-fe/lulu
theme/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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/peak/js/plugin/sea.js
https://github.com/yued-fe/lulu/blob/master/theme/peak/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(...
@Keyboard.js @author zhangxinxu @version Created: 17-06-13
U
javascript
yued-fe/lulu
theme/pure/js/common/all.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/all.js
MIT
checkIfIteratorIsSupported = function () { try { return !!Symbol.iterator; } catch (error) { return false; } }
Polyfill URLSearchParams Inspired from : https://github.com/WebReflection/url-search-params/blob/master/src/url-search-params.js
checkIfIteratorIsSupported
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
createIterator = function (items) { var iterator = { next: function () { var value = items.shift(); return { done: value === void 0, value: value }; } }; if (iteratorSupported) { ...
Polyfill URLSearchParams Inspired from : https://github.com/WebReflection/url-search-params/blob/master/src/url-search-params.js
createIterator
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
serializeParam = function (value) { return encodeURIComponent(value).replace(/%20/g, '+'); }
Search param name and values should be encoded according to https://url.spec.whatwg.org/#urlencoded-serializing encodeURIComponent() produces the same result except encoding spaces as `%20` instead of `+`.
serializeParam
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
deserializeParam = function (value) { return decodeURIComponent(String(value).replace(/\+/g, ' ')); }
Search param name and values should be encoded according to https://url.spec.whatwg.org/#urlencoded-serializing encodeURIComponent() produces the same result except encoding spaces as `%20` instead of `+`.
deserializeParam
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
polyfillURLSearchParams = function () { var URLSearchParams = function (searchString) { Object.defineProperty(this, '_entries', { writable: true, value: {} }); var typeofSearchString = typeof searchString; if (typeofSearchString =...
Search param name and values should be encoded according to https://url.spec.whatwg.org/#urlencoded-serializing encodeURIComponent() produces the same result except encoding spaces as `%20` instead of `+`.
polyfillURLSearchParams
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
URLSearchParams = function (searchString) { Object.defineProperty(this, '_entries', { writable: true, value: {} }); var typeofSearchString = typeof searchString; if (typeofSearchString === 'undefined') { // do nothing ...
Search param name and values should be encoded according to https://url.spec.whatwg.org/#urlencoded-serializing encodeURIComponent() produces the same result except encoding spaces as `%20` instead of `+`.
URLSearchParams
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
checkIfURLSearchParamsSupported = function () { try { var URLSearchParams = global.URLSearchParams; return (new URLSearchParams('?a=1').toString() === 'a=1') && (typeof URLSearchParams.prototype.set === 'function'); } catch (e) { return false; } }
Search param name and values should be encoded according to https://url.spec.whatwg.org/#urlencoded-serializing encodeURIComponent() produces the same result except encoding spaces as `%20` instead of `+`.
checkIfURLSearchParamsSupported
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
checkIfURLIsSupported = function () { try { var u = new global.URL('b', 'http://a'); u.pathname = 'c%20d'; return (u.href === 'http://a/c%20d') && u.searchParams; } catch (e) { return false; } }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
checkIfURLIsSupported
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
polyfillURL = function () { var _URL = global.URL; var URL = function (url, base) { if (typeof url !== 'string') url = String(url); // Only create another document if the base is different from current location. var doc = document; var baseElement; ...
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
polyfillURL
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
URL = function (url, base) { if (typeof url !== 'string') url = String(url); // Only create another document if the base is different from current location. var doc = document; var baseElement; if (base && (global.location === void 0 || base !== global.locati...
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
URL
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
linkURLWithAnchorAttribute = function (attributeName) { Object.defineProperty(proto, attributeName, { get: function () { return this._anchorElement[attributeName]; }, set: function (value) { this._anchorElement[attribute...
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
linkURLWithAnchorAttribute
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
getOrigin = function () { return global.location.protocol + '//' + global.location.hostname + (global.location.port ? (':' + global.location.port) : ''); }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
getOrigin
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function has (key) { return this._data.hasOwnProperty(key); }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
has
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function append (key, value) { var self = this; if (!has.call(self, key)) { self._data[key] = []; } self._data[key].push(value); }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
append
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function deleteFn (key) { delete this._data[key]; }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
deleteFn
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function getAll (key) { return this._data[key] || null; }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
getAll
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function get (key) { var values = getAll.call(this, key); return values ? values[0] : null; }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
get
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function set (key, value) { this._data[key] = [value]; }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
set
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function createBoundary () { // for XHR var random = math.random; var salt = (random() * math.pow(10, ((random() * 12) | 0) + 1)); var hash = (random() * salt).toString(36); return '----------------FormData-' + hash; }
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
createBoundary
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function parseContents (children) { var child, counter, counter2, length, length2, name, option, self = this; for (counter = 0, length = children.length; counter < length; counter += 1) { child =...
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
parseContents
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function toString () { var self = this, body = [], data = self._data, key, prefix = '--'; for (key in data) { if (data.hasOwnProperty(key)) { body.push(prefix + self._boundary); // boundaries are prefixed with '--' ...
Polyfill URL Inspired from : https://github.com/arv/DOM-URL-Polyfill/blob/master/src/url.js
toString
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function FormData (form) { var self = this; if (!(self instanceof FormData)) { return new FormData(form); } if (form && (!form.tagName || form.tagName !== 'FORM')) { // not a form return; } self._boundary = createBoundary(); ...
[FormData description] @contructor @param {?HTMLForm} form HTML <form> element to populate the object (optional)
FormData
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function send (data) { var self = this; if (data instanceof FormData) { self.setRequestHeader('Content-Type', 'multipart/form-data; boundary=' + data._boundary); return xhrSend.call(self, data.toString()); } return xhrSend.call(self, data || null); ...
[FormData description] @contructor @param {?HTMLForm} form HTML <form> element to populate the object (optional)
send
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
CustomEvent = function (event, params) { params = params || { bubbles: false, cancelable: false, detail: undefined }; var evt = document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); r...
CustomEvent constructor polyfill for IE @return {[type]} [description]
CustomEvent
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT
function has (key) { return this._data.hasOwnProperty(key); }
@description placeholder polyfill for IE9 only support one line no consideration of settings placeholder attr @author zhangxinxu(.com) @created 2019-08-09
has
javascript
yued-fe/lulu
theme/pure/js/common/polyfill.js
https://github.com/yued-fe/lulu/blob/master/theme/pure/js/common/polyfill.js
MIT