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 del(url, fn){ var req = request('DELETE', url); if (fn) req.end(fn); return req; }
Get case-insensitive header `field` value. This is a deprecated internal API. Use `.get(field)` instead. (getHeader is no longer used internally by the superagent code base) @param {String} field @return {String} @api private @deprecated
del
javascript
edp963/wormhole
rider/swagger-ui/swagger-ui.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js
Apache-2.0
function isObject(obj) { return null !== obj && 'object' === typeof obj; }
Abort the request, and clear potential timeout. @return {Request} @api public
isObject
javascript
edp963/wormhole
rider/swagger-ui/swagger-ui.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/swagger-ui.js
Apache-2.0
isPrimitive = function isPrimitive(input) { var type = typeof input; return input === null || (type !== 'object' && type !== 'function'); }
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
isPrimitive
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
binder = function () { if (this instanceof bound) { // 15.3.4.5.2 [[Construct]] // When the [[Construct]] internal method of a function object, // F that was created using the bind function is called with a // list of argum...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
binder
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
properlyBoxesContext = function properlyBoxed(method) { // Check node 0.6.21 bug where third parameter is not boxed var properlyBoxesNonStrict = true; var properlyBoxesStrict = true; var threwException = false; if (method) { try { method.call('foo', fu...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
properlyBoxesContext
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
pushShim = function push(item) { var O = ES.ToObject(this); var n = ES.ToUint32(O.length); var i = 0; while (i < arguments.length) { O[n + i] = arguments[i]; i += 1; } O.length = n + i; return n + i; }
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
pushShim
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
equalsConstructorPrototype = function (o) { var ctor = o.constructor; return ctor && ctor.prototype === o; }
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
equalsConstructorPrototype
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
equalsConstructorPrototypeIfNotBuggy = function (object) { if (typeof window === 'undefined' || !hasAutomationEqualityBug) { return equalsConstructorPrototype(object); } try { return equalsConstructorPrototype(object); } catch (e) { return false; ...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
equalsConstructorPrototypeIfNotBuggy
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
isStandardArguments = function isArguments(value) { return toStr(value) === '[object Arguments]'; }
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
isStandardArguments
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
isLegacyArguments = function isArguments(value) { return value !== null && typeof value === 'object' && typeof value.length === 'number' && value.length >= 0 && !isArray(value) && isCallable(value.callee); }
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
isLegacyArguments
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
daysInMonth = function daysInMonth(month, year) { return originalGetDate(new Date(year, month, 0)); }
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
daysInMonth
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
DateShim = function Date(Y, M, D, h, m, s, ms) { var length = arguments.length; var date; if (this instanceof NativeDate) { var seconds = s; var millis = ms; if (hasSafariSignedIntBug && length >= 7 && ms > maxSa...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
DateShim
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
dayFromMonth = function dayFromMonth(year, month) { var t = month > 1 ? 1 : 0; return ( months[month] + Math.floor((year - 1969 + t) / 4) - Math.floor((year - 1901 + t) / 100) + Math.floor((year - 1601 + t) /...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
dayFromMonth
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
toUTC = function toUTC(t) { var s = 0; var ms = t; if (hasSafariSignedIntBug && ms > maxSafeUnsigned32Bit) { // work around a Safari 8/9 bug where it treats the seconds as signed var msToShift = Math.floor(ms / maxSafeUnsigned32Bit)...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
toUTC
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
parseShim = function parse(string) { var match = isoDateExpression.exec(string); if (match) { // parse months, days, hours, minutes, seconds, and milliseconds // provide default values if necessary // parse the UTC offset compon...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
parseShim
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
toFixedShim = function toFixed(fractionDigits) { var f, x, s, m, e, z, j, k; // Test for NaN and round fractionDigits down f = $Number(fractionDigits); f = isActualNaN(f) ? 0 : Math.floor(f); if (f < 0 || f > 20) { throw new RangeError('Number.toFixed called with in...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
toFixedShim
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
wrappedReplaceValue = function (match) { var length = arguments.length; var originalLastIndex = searchValue.lastIndex; searchValue.lastIndex = 0; var args = searchValue.exec(match) || []; searchValue.lastIndex = original...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
wrappedReplaceValue
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
errorToStringShim = function toString() { if (typeof this === 'undefined' || this === null) { throw new TypeError("can't convert " + this + ' to object'); } var name = this.name; if (typeof name === 'undefined') { name = 'Error'; ...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
errorToStringShim
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
ensureNonEnumerable = function (obj, prop) { if (isEnum(obj, prop)) { var desc = Object.getOwnPropertyDescriptor(obj, prop); if (desc.configurable) { desc.enumerable = false; Object.defineProperty(obj, prop, desc); } ...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
ensureNonEnumerable
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
regexToString = function toString() { var str = '/' + this.source + '/'; if (this.global) { str += 'g'; } if (this.ignoreCase) { str += 'i'; } if (this.multiline) { str += 'm'; } ...
Brings an environment as close to ECMAScript 5 compliance as is possible with the facilities of erstwhile engines. Annotated ES5: http://es5.github.com/ (specific links below) ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Required reading: http://javascriptweblog.wordpress.com/201...
regexToString
javascript
edp963/wormhole
rider/swagger-ui/lib/es5-shim.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/es5-shim.js
Apache-2.0
function strip(start, end) { return yy_.yytext = yy_.yytext.substr(start, yy_.yyleng - end); }
/) { var $0 = $$.length - 1; switch (yystate) { case 1: return $$[$0 - 1]; break; case 2: this.$ = yy.prepareProgram($$[$0]); break; case 3: ...
strip
javascript
edp963/wormhole
rider/swagger-ui/lib/handlebars-4.0.5.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/handlebars-4.0.5.js
Apache-2.0
function Parser() { this.yy = {}; }
/) { var $0 = $$.length - 1; switch (yystate) { case 1: return $$[$0 - 1]; break; case 2: this.$ = yy.prepareProgram($$[$0]); break; case 3: ...
Parser
javascript
edp963/wormhole
rider/swagger-ui/lib/handlebars-4.0.5.js
https://github.com/edp963/wormhole/blob/master/rider/swagger-ui/lib/handlebars-4.0.5.js
Apache-2.0
function adjustForScrollbar() { if ((parseInt(jQuery('#body-inner').height()) + 83) >= jQuery('#body').height()) { jQuery('.nav.nav-next').css({ 'margin-right': getScrollBarWidth() }); } else { jQuery('.nav.nav-next').css({ 'margin-right': 0 }); } }
If the click event's target was an anchor, fix the scroll position.
adjustForScrollbar
javascript
aws-samples/aws-serverless-workshops
ImageProcessing/workshop/themes/learn/static/js/learn.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/ImageProcessing/workshop/themes/learn/static/js/learn.js
Apache-2.0
function search(queryTerm) { // Find the item in our index corresponding to the lunr one to have more info return lunrIndex.search(queryTerm+"^100"+" "+queryTerm+"*^10"+" "+"*"+queryTerm+"^10"+" "+queryTerm+"~2^1").map(function(result) { return pagesIndex.filter(function(page) { retu...
Trigger a search in lunr and transform the result @param {String} query @return {Array} results
search
javascript
aws-samples/aws-serverless-workshops
ImageProcessing/workshop/themes/learn/static/js/search.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/ImageProcessing/workshop/themes/learn/static/js/search.js
Apache-2.0
function AuthenticationHelper(PoolName) { _classCallCheck(this, AuthenticationHelper); this.N = new _BigInteger2.default(initN, 16); this.g = new _BigInteger2.default('2', 16); this.k = new _BigInteger2.default(this.hexHash('00' + this.N.toString(16) + '0' + this.g.toString(16)), 16); this.sm...
Constructs a new AuthenticationHelper object @param {string} PoolName Cognito user pool name.
AuthenticationHelper
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function CognitoAccessToken() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, AccessToken = _ref.AccessToken; _classCallCheck(this, CognitoAccessToken); // Assign object this.jwtToken = AccessToken || ''; }
Constructs a new CognitoAccessToken object @param {string=} AccessToken The JWT access token.
CognitoAccessToken
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function CognitoIdToken() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, IdToken = _ref.IdToken; _classCallCheck(this, CognitoIdToken); // Assign object this.jwtToken = IdToken || ''; }
Constructs a new CognitoIdToken object @param {string=} IdToken The JWT Id token
CognitoIdToken
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function CognitoRefreshToken() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, RefreshToken = _ref.RefreshToken; _classCallCheck(this, CognitoRefreshToken); // Assign object this.token = RefreshToken || ''; }
Constructs a new CognitoRefreshToken object @param {string=} RefreshToken The JWT refresh token.
CognitoRefreshToken
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function CognitoUser(data) { _classCallCheck(this, CognitoUser); if (data == null || data.Username == null || data.Pool == null) { throw new Error('Username and pool information are required.'); } this.username = data.Username || ''; this.pool = data.Pool; this.Session = null; ...
Constructs a new CognitoUser object @param {object} data Creation options @param {string} data.Username The user's username. @param {CognitoUserPool} data.Pool Pool containing the user. @param {object} data.Storage Optional storage object.
CognitoUser
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
respondToAuthChallenge = function respondToAuthChallenge(challenge, challengeCallback) { return _this2.client.makeUnauthenticatedRequest('respondToAuthChallenge', challenge, function (errChallenge, dataChallenge) { if (errChallenge && errChallenge.code === 'ResourceNotFoundException' && errChallenge...
This is used for authenticating the user. it calls the AuthenticationHelper for SRP related stuff @param {AuthenticationDetails} authDetails Contains the authentication data @param {object} callback Result callback map. @param {onFailure} callback.onFailure Called on any error. @param {newPasswordRequired} callback.new...
respondToAuthChallenge
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function CognitoUserAttribute() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, Name = _ref.Name, Value = _ref.Value; _classCallCheck(this, CognitoUserAttribute); this.Name = Name || ''; this.Value = Value || ''; }
Constructs a new CognitoUserAttribute object @param {string=} Name The record's name @param {string=} Value The record's value
CognitoUserAttribute
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function CognitoUserSession() { var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, IdToken = _ref.IdToken, RefreshToken = _ref.RefreshToken, AccessToken = _ref.AccessToken; _classCallCheck(this, CognitoUserSession); if (AccessToken == null || I...
Constructs a new CognitoUserSession object @param {string} IdToken The session's Id token. @param {string=} RefreshToken The session's refresh token. @param {string} AccessToken The session's access token.
CognitoUserSession
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function StorageHelper() { _classCallCheck(this, StorageHelper); try { this.storageWindow = window.localStorage; this.storageWindow.setItem('aws.cognito.test-ls', 1); this.storageWindow.removeItem('aws.cognito.test-ls'); } catch (exception) { this.storageWindow = MemoryStorag...
This is used to get a storage object @returns {object} the storage
StorageHelper
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function AuthenticationDetails(data) { _classCallCheck(this, AuthenticationDetails); var _ref = data || {}, ValidationData = _ref.ValidationData, Username = _ref.Username, Password = _ref.Password, AuthParameters = _ref.AuthParameters; this.validationData = Validatio...
Constructs a new AuthenticationDetails object @param {object=} data Creation options. @param {string} data.Username User being authenticated. @param {string} data.Password Plain-text password to authenticate with. @param {(AttributeArg[])?} data.ValidationData Application extra metadata. @param {(AttributeArg[])?} data...
AuthenticationDetails
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function CognitoUserPool(data) { _classCallCheck(this, CognitoUserPool); var _ref = data || {}, UserPoolId = _ref.UserPoolId, ClientId = _ref.ClientId, endpoint = _ref.endpoint; if (!UserPoolId || !ClientId) { throw new Error('Both UserPoolId and ClientId are required....
Constructs a new CognitoUserPool object @param {object} data Creation options. @param {string} data.UserPoolId Cognito user pool id. @param {string} data.ClientId User pool application client id. @param {object} data.Storage Optional storage object.
CognitoUserPool
javascript
aws-samples/aws-serverless-workshops
MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
https://github.com/aws-samples/aws-serverless-workshops/blob/master/MultiRegion/2_UI/src/assets/js/aws/amazon-cognito-identity.js
Apache-2.0
function toc(str, options) { return new utils.Remarkable() .use(generate(options)) .render(str); }
Load `generate` as a remarkable plugin and expose the `toc` function. @param {String} `str` String of markdown @param {Object} `options` @return {String} Markdown-formatted table of contents
toc
javascript
jonschlinkert/markdown-toc
index.js
https://github.com/jonschlinkert/markdown-toc/blob/master/index.js
MIT
function generate(options) { var opts = utils.merge({firsth1: true, maxdepth: 6}, options); var stripFirst = opts.firsth1 === false; if (typeof opts.linkify === 'undefined') opts.linkify = true; return function(md) { md.renderer.render = function(tokens) { tokens = tokens.slice(); var seen = {}...
Generate a markdown table of contents. This is the function that does all of the main work with Remarkable. @param {Object} `options` @return {String}
generate
javascript
jonschlinkert/markdown-toc
index.js
https://github.com/jonschlinkert/markdown-toc/blob/master/index.js
MIT
function bullets(arr, options) { var opts = utils.merge({indent: ' '}, options); opts.chars = opts.chars || opts.bullets || ['-', '*', '+']; var unindent = 0; var listitem = utils.li(opts); var fn = typeof opts.filter === 'function' ? opts.filter : null; // Keep the first h1? This is `true` by de...
Render markdown list bullets @param {Array} `arr` Array of listitem objects @param {Object} `opts` @return {String}
bullets
javascript
jonschlinkert/markdown-toc
index.js
https://github.com/jonschlinkert/markdown-toc/blob/master/index.js
MIT
function highest(arr) { var res = arr.slice().sort(function(a, b) { return a.lvl - b.lvl; }); if (res && res.length) { return res[0].lvl; } return 0; }
Get the highest heading level in the array, so we can un-indent the proper number of levels. @param {Array} `arr` Array of tokens @return {Number} Highest level
highest
javascript
jonschlinkert/markdown-toc
index.js
https://github.com/jonschlinkert/markdown-toc/blob/master/index.js
MIT
function titleize(str, opts) { if (opts && opts.strip) { return strip(str, opts); } if (opts && opts.titleize === false) return str; if (opts && typeof opts.titleize === 'function') { return opts.titleize(str, opts); } str = utils.getTitle(str); str = str.split(/<\/?[^>]+>/).join(''); str = str.split(...
Titleize the title part of a markdown link. @name options.titleize @param {String} `str` The string to titleize @param {Object} `opts` Pass a custom titleize function on `titleize` @return {String} @api public
titleize
javascript
jonschlinkert/markdown-toc
index.js
https://github.com/jonschlinkert/markdown-toc/blob/master/index.js
MIT
function strip(str, opts) { opts = opts || {}; if (!opts.strip) return str; if (typeof opts.strip === 'function') { return opts.strip(str, opts); } if (Array.isArray(opts.strip) && opts.strip.length) { var res = opts.strip.join('|'); var re = new RegExp(res, 'g'); str = str.trim().replace(re, ...
Optionally strip specified words from heading text (not url) @name options.strip @param {String} `str` @param {String} `opts` @return {String}
strip
javascript
jonschlinkert/markdown-toc
index.js
https://github.com/jonschlinkert/markdown-toc/blob/master/index.js
MIT
function split(str, re) { return str.split(re).map(trim); }
The basic idea: 1. when front-matter exists, we need to avoid turning its properties into headings. 2. We need to detect toc markers on the page. For now it's a simple HTML code comment to ensure the markdown is compatible with any parser. @param {String} `str` Pass a string of markdown @param {Object} `optio...
split
javascript
jonschlinkert/markdown-toc
lib/insert.js
https://github.com/jonschlinkert/markdown-toc/blob/master/lib/insert.js
MIT
function trim(str) { return str.trim(); }
The basic idea: 1. when front-matter exists, we need to avoid turning its properties into headings. 2. We need to detect toc markers on the page. For now it's a simple HTML code comment to ensure the markdown is compatible with any parser. @param {String} `str` Pass a string of markdown @param {Object} `optio...
trim
javascript
jonschlinkert/markdown-toc
lib/insert.js
https://github.com/jonschlinkert/markdown-toc/blob/master/lib/insert.js
MIT
getLink = function() { var link = document.getElementsByTagName('head')[0].getElementsByTagName('link'); for (var l = link.length, i = (l - 1); i >= 0; i--) { if ((/(^|\s)icon(\s|$)/i).test(link[i].getAttribute('rel'))) { return link[i]; } } return false; }
Get icon from HEAD tag or create a new <link> element
getLink
javascript
sdelements/lets-chat
media/js/vendor/favico.js/favico.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/favico.js/favico.js
MIT
function hexToRgb(hex) { var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; hex = hex.replace(shorthandRegex, function(m, r, g, b) { return r + r + g + g + b + b; }); var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); return result ? { r : parseInt(result[1], 16), g : p...
Get icon from HEAD tag or create a new <link> element
hexToRgb
javascript
sdelements/lets-chat
media/js/vendor/favico.js/favico.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/favico.js/favico.js
MIT
function isPageHidden() { return document.hidden || document.msHidden || document.webkitHidden || document.mozHidden; }
Cross-browser page visibility shim http://stackoverflow.com/questions/12536562/detect-whether-a-window-is-visible
isPageHidden
javascript
sdelements/lets-chat
media/js/vendor/favico.js/favico.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/favico.js/favico.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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function createPositionalPseudo( fn ) { return markFunction(function( argument ) { argument = +argument; return markFunction(function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) {...
Returns a function to use in pseudos for positionals @param {Function} fn
createPositionalPseudo
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function testContext( context ) { return context && typeof context.getElementsByTagName !== "undefined" && context; }
Checks a node for validity as a Sizzle context @param {Element|Object=} context @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
testContext
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function matcherFromGroupMatchers( elementMatchers, setMatchers ) { var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched ...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
matcherFromGroupMatchers
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, // We must always have either seed elements or outermost context elems = seed || byElement && Exp...
Utility function for retrieving the text value of an array of DOM nodes @param {Array|Element} elem
superMatcher
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
winnow
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function sibling( cur, dir ) { while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {} return cur; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
sibling
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function createOptions( options ) { var object = optionsCache[ options ] = {}; jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { object[ flag ] = true; }); return object; }
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
createOptions
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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 && ...
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
fire
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
updateFunc = function( i, contexts, values ) { return function( value ) { contexts[ i ] = this; values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; if ( values === progressValues ) { deferred.notifyWith( contexts, values ); } else if ( !( --remaining ) ) { deferred....
A low-level selection function that works with Sizzle's compiled selector functions @param {String|Function} selector A selector or a pre-compiled selector function built with Sizzle.compile @param {Element} context @param {Array} [results] @param {Array} [seed] A set of elements to match against
updateFunc
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function completed() { document.removeEventListener( "DOMContentLoaded", completed, false ); window.removeEventListener( "load", completed, false ); jQuery.ready(); }
The ready event handler and self cleanup method
completed
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function Data() { // Support: Android<4, // Old WebKit does not have Object.preventExtensions/freeze method, // return new empty object instead with no [[set]] accessor Object.defineProperty( this.cache = {}, 0, { get: function() { return {}; } }); this.expando = jQuery.expando + Data.uid++; }
Determines whether an object can have data
Data
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function dataAttr( elem, key, data ) { var name; // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data...
Determines whether an object can have data
dataAttr
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
next = function() { jQuery.dequeue( elem, type ); }
Determines whether an object can have data
next
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }
Determines whether an object can have data
resolve
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
isHidden = function( 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 ); }
Determines whether an object can have data
isHidden
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function returnTrue() { return true; }
Determines whether an object can have data
returnTrue
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function returnFalse() { return false; }
Determines whether an object can have data
returnFalse
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } }
Determines whether an object can have data
safeActiveElement
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); }
Determines whether an object can have data
handler
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function manipulationTarget( elem, content ) { return jQuery.nodeName( elem, "table" ) && jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? elem.getElementsByTagName("tbody")[0] || elem.appendChild( elem.ownerDocument.createElement("tbody") ) : elem; }
Determines whether an object can have data
manipulationTarget
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function disableScript( elem ) { elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type; return elem; }
Determines whether an object can have data
disableScript
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function restoreScript( elem ) { var match = rscriptTypeMasked.exec( elem.type ); if ( match ) { elem.type = match[ 1 ]; } else { elem.removeAttribute("type"); } return elem; }
Determines whether an object can have data
restoreScript
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function setGlobalEval( elems, refElements ) { var i = 0, l = elems.length; for ( ; i < l; i++ ) { data_priv.set( elems[ i ], "globalEval", !refElements || data_priv.get( refElements[ i ], "globalEval" ) ); } }
Determines whether an object can have data
setGlobalEval
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function cloneCopyEvent( src, dest ) { var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; if ( dest.nodeType !== 1 ) { return; } // 1. Copy private data: events, handlers, etc. if ( data_priv.hasData( src ) ) { pdataOld = data_priv.access( src ); pdataCur = data_priv.set( dest, pdataOld ); e...
Determines whether an object can have data
cloneCopyEvent
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function getAll( context, tag ) { var ret = context.getElementsByTagName ? context.getElementsByTagName( tag || "*" ) : context.querySelectorAll ? context.querySelectorAll( tag || "*" ) : []; return tag === undefined || tag && jQuery.nodeName( context, tag ) ? jQuery.merge( [ context ], ret ) : ret; }
Determines whether an object can have data
getAll
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && rcheckableType.test( src.type ) ) { dest.checked = src.checked; // Fails to return the selected option to the default selected sta...
Determines whether an object can have data
fixInput
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function actualDisplay( name, doc ) { var style, elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), // getDefaultComputedStyle might be reliably used only on attached element display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ? // Use of this me...
Retrieve the actual display of a element @param {String} name nodeName of the element @param {Object} doc Document object
actualDisplay
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function 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 iframe ...
Try to determine the default display value of an element @param {String} nodeName
defaultDisplay
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
getStyles = function( elem ) { // Support: IE<=11+, Firefox<=30+ (#15098, #14150) // IE throws on elements created in popups // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" if ( elem.ownerDocument.defaultView.opener ) { return elem.ownerDocument.defaultView.getComputedStyle( e...
Try to determine the default display value of an element @param {String} nodeName
getStyles
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function curCSS( elem, name, computed ) { var width, minWidth, maxWidth, ret, style = elem.style; computed = computed || getStyles( elem ); // Support: IE9 // getPropertyValue is only needed for .css('filter') (#12537) if ( computed ) { ret = computed.getPropertyValue( name ) || computed[ name ]; } if ( c...
Try to determine the default display value of an element @param {String} nodeName
curCSS
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function addGetHookIf( conditionFn, hookFn ) { // Define the hook, we'll check on the first run if it's really needed. return { get: function() { if ( conditionFn() ) { // Hook not needed (or it's not possible to use it due // to missing dependency), remove it. delete this.get; return; } /...
Try to determine the default display value of an element @param {String} nodeName
addGetHookIf
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function computePixelPositionAndBoxSizingReliable() { div.style.cssText = // Support: Firefox<29, Android 2.3 // Vendor-prefix box-sizing "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" + "box-sizing:border-box;display:block;margin-top:1%;top:1%;" + "border:1px;padding:1px;width:4px;positio...
Try to determine the default display value of an element @param {String} nodeName
computePixelPositionAndBoxSizingReliable
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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[0].toUpperCase() + name.slice(1), origName = name, i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + ca...
Try to determine the default display value of an element @param {String} nodeName
vendorPropName
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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; }
Try to determine the default display value of an element @param {String} nodeName
setPositiveNumber
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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 ( ; ...
Try to determine the default display value of an element @param {String} nodeName
augmentWidthOrHeight
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/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.css( elem, "boxSizing", false, styles ) === "b...
Try to determine the default display value of an element @param {String} nodeName
getWidthOrHeight
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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 ] = data_priv.get( elem, "olddisplay" ); display = elem.style.display; ...
Try to determine the default display value of an element @param {String} nodeName
showHide
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); }
Try to determine the default display value of an element @param {String} nodeName
Tween
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function createFxNow() { setTimeout(function() { fxNow = undefined; }); return ( fxNow = jQuery.now() ); }
Try to determine the default display value of an element @param {String} nodeName
createFxNow
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT
function genFx( type, includeWidth ) { var which, i = 0, attrs = { height: type }; // If we include width, step value is 1 to do all cssExpand values, // otherwise step value is 2 to skip over Left and Right includeWidth = includeWidth ? 1 : 0; for ( ; i < 4 ; i += 2 - includeWidth ) { which = cssExpand[ i ...
Try to determine the default display value of an element @param {String} nodeName
genFx
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.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 ...
Try to determine the default display value of an element @param {String} nodeName
createTween
javascript
sdelements/lets-chat
media/js/vendor/jquery/jquery.js
https://github.com/sdelements/lets-chat/blob/master/media/js/vendor/jquery/jquery.js
MIT