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 |
|---|---|---|---|---|---|---|---|
warnUnused = function (name, tkn, type, unused_opt) {
var line = tkn.line;
var chr = tkn.character;
if (unused_opt === undefined) {
unused_opt = state.option.unused;
}
if (unused_opt === true) {
unused_opt = "last-param";
}
var warnable_typ... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | warnUnused | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
checkUnused = function (func, key) {
var type = func[key];
var tkn = func["(tokens)"][key];
if (key.charAt(0) === "(")
return;
if (type !== "unused" && type !== "unction" && type !== "const")
return;
// Params are checked separately from other variables.
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | checkUnused | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function asyncTrigger() {
var _checks = [];
return {
push: function (fn) {
_checks.push(fn);
},
check: function () {
for (var check = 0; check < _checks.length; ++check) {
_checks[check]();
}
_checks.splice(0, _checks.length);
}
};
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | asyncTrigger | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function Lexer(source) {
var lines = source;
if (typeof lines === "string") {
lines = lines
.replace(/\r\n/g, "\n")
.replace(/\r/g, "\n")
.split("\n");
}
// If the first line is a shebang (#!), make it a blank and move on.
// Shebangs are used by Node scripts.
if (lines[0] && lines[... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | Lexer | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function commentToken(label, body, opt) {
var special = ["jshint", "jslint", "members", "member", "globals", "global", "exported"];
var isSpecial = false;
var value = label + body;
var commentType = "plain";
opt = opt || {};
if (opt.isMultiline) {
value += "*/";
}
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | commentToken | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isNonAsciiIdentifierStart(code) {
return nonAsciiIdentifierStartTable.indexOf(code) > -1;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isNonAsciiIdentifierStart | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isNonAsciiIdentifierPart(code) {
return isNonAsciiIdentifierStart(code) || nonAsciiIdentifierPartTable.indexOf(code) > -1;
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isNonAsciiIdentifierPart | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isHexDigit(str) {
return (/^[0-9a-fA-F]$/).test(str);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isHexDigit | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isDecimalDigit(str) {
return (/^[0-9]$/).test(str);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isDecimalDigit | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isOctalDigit(str) {
return (/^[0-7]$/).test(str);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isOctalDigit | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isHexDigit(str) {
return (/^[0-9a-fA-F]$/).test(str);
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isHexDigit | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isIdentifierStart(ch) {
return (ch === "$") || (ch === "_") || (ch === "\\") ||
(ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z");
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isIdentifierStart | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
startsWith = function () {
return _.some(arguments, function (prefix) {
return inputTrimmed.indexOf(prefix) === 0;
});
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | startsWith | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
endsWith = function () {
return _.some(arguments, function (suffix) {
return inputTrimmed.indexOf(suffix, inputTrimmed.length - suffix.length) !== -1;
});
} | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | endsWith | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.js | MIT |
function isReserved(token, isProperty) {
if (!token.reserved) {
return false;
}
var meta = token.meta;
if (meta && meta.isFutureReservedWord && state.option.inES5()) {
// ES3 FutureReservedWord in an ES5 environment.
if (!meta.es5) {
return false;
}
... | Inherit the prototype methods from one constructor into another.
The Function.prototype.inherits from lang.js rewritten as a standalone
function (not on Function.prototype). NOTE: If this file is to be loaded
during bootstrapping this function needs to be rewritten using some native
functions as prototype setup using ... | isReserved | javascript | keystonejs/keystone-classic | admin/public/js/lib/codemirror/codemirror-compressed.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/codemirror/codemirror-compressed.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function assert( fn ) {
var div = document.createElement("div");
try {
return !!fn( div );
} catch (e) {
return false;
} finally {
// Remove from its parent by default
if ( div.parentNode ) {
div.parentNode.removeChild( div );
}
// 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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function addHandle( attrs, handler ) {
var arr = attrs.split("|"),
i = attrs.length;
while ( i-- ) {
Expr.attrHandle[ arr[i] ] = handler;
}
} | Adds the same handler for all of the specified attrs
@param {String} attrs Pipe-separated list of attributes
@param {Function} handler The method that will be applied | addHandle | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function siblingCheck( a, b ) {
var cur = b && a,
diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
( ~b.sourceIndex || MAX_NEGATIVE ) -
( ~a.sourceIndex || MAX_NEGATIVE );
// Use IE sourceIndex if available on both nodes
if ( diff ) {
return diff;
}
// Check if b follows a
if ( cur ) {
while ( ... | Checks document order of two siblings
@param {Element} a
@param {Element} b
@returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b | siblingCheck | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function createInputPseudo( type ) {
return function( elem ) {
var name = elem.nodeName.toLowerCase();
return name === "input" && elem.type === type;
};
} | Returns a function to use in pseudos for input types
@param {String} type | createInputPseudo | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function createButtonPseudo( type ) {
return function( elem ) {
var name = elem.nodeName.toLowerCase();
return (name === "input" || name === "button") && elem.type === type;
};
} | Returns a function to use in pseudos for buttons
@param {String} type | createButtonPseudo | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function createPositionalPseudo( fn ) {
return markFunction(function( argument ) {
argument = +argument;
return markFunction(function( seed, matches ) {
var j,
matchIndexes = fn( [], seed.length, argument ),
i = matchIndexes.length;
// Match elements found at the specified indexes
while ( i-- ) {... | Returns a function to use in pseudos for positionals
@param {Function} fn | createPositionalPseudo | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function addCombinator( matcher, combinator, base ) {
var dir = combinator.dir,
checkNonElements = base && dir === "parentNode",
doneName = done++;
return combinator.first ?
// Check against closest ancestor/preceding element
function( elem, context, xml ) {
while ( (elem = elem[ dir ]) ) {
if ( elem.... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | addCombinator | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function createOptions( options ) {
var object = optionsCache[ options ] = {};
jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) {
object[ flag ] = true;
});
return object;
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | createOptions | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
fire = function( data ) {
memory = options.memory && data;
fired = true;
firingIndex = firingStart || 0;
firingStart = 0;
firingLength = list.length;
firing = true;
for ( ; list && firingIndex < firingLength; firingIndex++ ) {
if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && ... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | fire | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
updateFunc = function( i, contexts, values ) {
return function( value ) {
contexts[ i ] = this;
values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;
if( values === progressValues ) {
deferred.notifyWith( contexts, values );
} else if ( !( --remaining ) ) {
defer... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | updateFunc | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function internalData( elem, name, data, pvt /* Internal Use Only */ ){
if ( !jQuery.acceptData( elem ) ) {
return;
}
var ret, thisCache,
internalKey = jQuery.expando,
// We have to handle DOM nodes and JS objects differently because IE6-7
// can't GC object references properly across the DOM-JS boundary
... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | internalData | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function internalRemoveData( elem, name, pvt ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
var thisCache, i,
isNode = elem.nodeType,
// See jQuery.data for more information
cache = isNode ? jQuery.cache : elem,
id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
// If there is already no cache e... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | internalRemoveData | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function dataAttr( elem, key, data ) {
// If nothing was found internally, try to fetch any
// data from the HTML5 data-* attribute
if ( data === undefined && elem.nodeType === 1 ) {
var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
data = elem.getAttribute( name );
if ( typeof data === "... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | dataAttr | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function isEmptyDataObject( obj ) {
var name;
for ( name in obj ) {
// if the public data object is empty, the private is still empty
if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
continue;
}
if ( name !== "toJSON" ) {
return false;
}
}
return true;
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | isEmptyDataObject | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
next = function() {
jQuery.dequeue( elem, type );
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | next | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
resolve = function() {
if ( !( --count ) ) {
defer.resolveWith( elements, [ elements ] );
}
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | resolve | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function returnTrue() {
return true;
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | returnTrue | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function returnFalse() {
return false;
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | returnFalse | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function safeActiveElement() {
try {
return document.activeElement;
} catch ( err ) { }
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | safeActiveElement | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
handler = function( event ) {
jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | handler | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function winnow( elements, qualifier, not ) {
if ( jQuery.isFunction( qualifier ) ) {
return jQuery.grep( elements, function( elem, i ) {
/* jshint -W018 */
return !!qualifier.call( elem, i, elem ) !== not;
});
}
if ( qualifier.nodeType ) {
return jQuery.grep( elements, function( elem ) {
return ( e... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | winnow | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function manipulationTarget( elem, content ) {
return jQuery.nodeName( elem, "table" ) &&
jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ?
elem.getElementsByTagName("tbody")[0] ||
elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
elem;
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | manipulationTarget | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function disableScript( elem ) {
elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;
return elem;
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | disableScript | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function fixCloneNodeIssues( src, dest ) {
var nodeName, e, data;
// 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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function getAll( context, tag ) {
var elems, elem,
i = 0,
found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) :
typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) :
undefined;
if ( !found ) {
for ( foun... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | getAll | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function showHide( elements, show ) {
var display, elem, hidden,
values = [],
index = 0,
length = elements.length;
for ( ; index < length; index++ ) {
elem = elements[ index ];
if ( !elem.style ) {
continue;
}
values[ index ] = jQuery._data( elem, "olddisplay" );
display = elem.style.display;
i... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | showHide | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function ajaxExtend( target, src ) {
var deep, key,
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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function ajaxHandleResponses( s, jqXHR, responses ) {
var firstDataType, ct, finalDataType, type,
contents = s.contents,
dataTypes = s.dataTypes;
// Remove auto dataType and get content-type in the process
while( dataTypes[ 0 ] === "*" ) {
dataTypes.shift();
if ( ct === undefined ) {
ct = s.mimeType || j... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | ajaxHandleResponses | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function ajaxConvert( s, response, jqXHR, isSuccess ) {
var conv2, current, conv, tmp, prev,
converters = {},
// Work with a copy of dataTypes in case we need to modify it for conversion
dataTypes = s.dataTypes.slice();
// Create converters map with lowercased keys
if ( dataTypes[ 1 ] ) {
for ( conv in s.co... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | ajaxConvert | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function createTween( value, prop, animation ) {
var tween,
collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
index = 0,
length = collection.length;
for ( ; index < length; index++ ) {
if ( (tween = collection[ index ].call( animation, prop, value )) ) {
// we're done with this property
... | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | createTween | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
function defaultPrefilter( elem, props, opts ) {
/* jshint validthis: true */
var prop, value, toggle, tween, hooks, oldfire,
anim = this,
orig = {},
style = elem.style,
hidden = elem.nodeType && isHidden( elem ),
dataShow = jQuery._data( elem, "fxshow" );
// 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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 );
// Empty animations, or finishing resolves immediately
if ( empty || jQuery._data( this, "finish" ) ) {
anim.stop( true );
}
} | Utility function for retrieving the text value of an array of DOM nodes
@param {Array|Element} elem | doAnimation | javascript | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.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 | keystonejs/keystone-classic | admin/public/js/lib/jquery/jquery-1.10.2.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/public/js/lib/jquery/jquery-1.10.2.js | MIT |
applyDeps = function (fn, _this, _map) {
var args = _.map(deps, function (key) {
return _map[key];
});
return fn.apply(_this, args);
} | Custom toCSV Method present
Detect dependencies and call it. If the last dependency is `callback`, call it asynchronously.
Support dependencies are:
- req (current express request object)
- user (currently authenticated user)
- row (default row data, as generated without custom toCSV())
- callback (invokes as... | applyDeps | javascript | keystonejs/keystone-classic | admin/server/api/download.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/server/api/download.js | MIT |
function buildFieldTypesStream (fieldTypes) {
var src = '';
var types = Object.keys(fieldTypes);
['Column', 'Field', 'Filter'].forEach(function (i) {
src += 'exports.' + i + 's = {\n';
types.forEach(function (type) {
if (typeof fieldTypes[type] !== 'string') return;
src += type + ': require("../../fields/t... | Returns an Express Router with bindings for the Admin UI static resources,
i.e files, less and browserified scripts.
Should be included before other middleware (e.g. session management,
logging, etc) for reduced overhead. | buildFieldTypesStream | javascript | keystonejs/keystone-classic | admin/server/app/createStaticRouter.js | https://github.com/keystonejs/keystone-classic/blob/master/admin/server/app/createStaticRouter.js | MIT |
function Field (list, path, options) {
// Set field properties and options
this.list = list;
this._path = new Path(path);
this.path = path;
this.type = this.constructor.name;
this.options = _.defaults({}, options, this.defaults);
this.label = options.label || utils.keyToLabel(this.path);
this.typeDescription ... | Field Constructor
=================
Extended by fieldType Classes, should not be used directly.
@api public | Field | javascript | keystonejs/keystone-classic | fields/types/Type.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/Type.js | MIT |
function azurefile (list, path, options) {
throw new Error('The AzureFile field type has been removed. Please use File instead.'
+ '\n\nSee https://github.com/keystonejs/keystone/wiki/File-Fields-Upgrade-Guide\n');
/*
grappling.mixin(this).allowHooks('pre:upload');
this._underscoreMethods = ['format', 'upload... | AzureFile FieldType Constructor
@extends Field
@api public | azurefile | javascript | keystonejs/keystone-classic | fields/types/azurefile/AzureFileType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/azurefile/AzureFileType.js | MIT |
exists = function (item) {
return (item.get(paths.url) ? true : false);
} | Registers the field on the List's Mongoose Schema. | exists | javascript | keystonejs/keystone-classic | fields/types/azurefile/AzureFileType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/azurefile/AzureFileType.js | MIT |
reset = function (item) {
item.set(field.path, {
filename: '',
path: '',
size: 0,
filetype: '',
url: '',
});
} | Registers the field on the List's Mongoose Schema. | reset | javascript | keystonejs/keystone-classic | fields/types/azurefile/AzureFileType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/azurefile/AzureFileType.js | MIT |
doUpload = function () {
var blobService = azure.createBlobService();
var container = field.options.containerFormatter(item, file.name);
blobService.createContainerIfNotExists(container, { publicAccessLevel: 'blob' }, function (err) {
if (err) return callback(err);
blobService.createBlockBlobFromLocalFil... | Uploads the file for this field | doUpload | javascript | keystonejs/keystone-classic | fields/types/azurefile/AzureFileType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/azurefile/AzureFileType.js | MIT |
function boolean (list, path, options) {
this._nativeType = Boolean;
this._properties = ['indent'];
this._fixedSize = 'full';
this.indent = (options.indent) ? true : false;
boolean.super_.call(this, list, path, options);
} | Boolean FieldType Constructor
@extends Field
@api public | boolean | javascript | keystonejs/keystone-classic | fields/types/boolean/BooleanType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/boolean/BooleanType.js | MIT |
function cloudinaryimage (list, path, options) {
this._underscoreMethods = ['format'];
this._fixedSize = 'full';
this._properties = ['select', 'selectPrefix', 'autoCleanup'];
if (options.filenameAsPublicID) {
// Produces the same result as the legacy filenameAsPublicID option
options.generateFilename = nameFun... | CloudinaryImage FieldType Constructor
@extends Field
@api public | cloudinaryimage | javascript | keystonejs/keystone-classic | fields/types/cloudinaryimage/CloudinaryImageType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/cloudinaryimage/CloudinaryImageType.js | MIT |
exists = function (item) {
return (item.get(paths.public_id) ? true : false);
} | Registers the field on the List's Mongoose Schema. | exists | javascript | keystonejs/keystone-classic | fields/types/cloudinaryimage/CloudinaryImageType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/cloudinaryimage/CloudinaryImageType.js | MIT |
src = function (item, options) {
if (!exists(item)) {
return '';
}
options = (typeof options === 'object') ? options : {};
if (!('fetch_format' in options) && keystone.get('cloudinary webp') !== false) {
options.fetch_format = 'auto';
}
if (!('progressive' in options) && keystone.get('cloudinary progr... | Registers the field on the List's Mongoose Schema. | src | javascript | keystonejs/keystone-classic | fields/types/cloudinaryimage/CloudinaryImageType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/cloudinaryimage/CloudinaryImageType.js | MIT |
reset = function (item) {
item.set(field.path, getEmptyValue());
} | Registers the field on the List's Mongoose Schema. | reset | javascript | keystonejs/keystone-classic | fields/types/cloudinaryimage/CloudinaryImageType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/cloudinaryimage/CloudinaryImageType.js | MIT |
addSize = function (options, width, height, other) {
if (width) options.width = width;
if (height) options.height = height;
if (typeof other === 'object') {
assign(options, other);
}
return options;
} | Registers the field on the List's Mongoose Schema. | addSize | javascript | keystonejs/keystone-classic | fields/types/cloudinaryimage/CloudinaryImageType.js | https://github.com/keystonejs/keystone-classic/blob/master/fields/types/cloudinaryimage/CloudinaryImageType.js | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.