mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 12:27:49 +00:00
Consistent empty bracket style.
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty,
|
var hasOwnProperty = objectProto.hasOwnProperty,
|
||||||
fnToString = funcProto.toString,
|
fnToString = funcProto.toString,
|
||||||
nativeString = fnToString.call(objectProto.toString),
|
nativeString = fnToString.call(objectProto.toString),
|
||||||
|
noop = function() {},
|
||||||
propertyIsEnumerable = objectProto.propertyIsEnumerable,
|
propertyIsEnumerable = objectProto.propertyIsEnumerable,
|
||||||
reToString = /toString/g,
|
reToString = /toString/g,
|
||||||
whitespace = ' \t\x0B\f\xA0\ufeff\n\r\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000';
|
whitespace = ' \t\x0B\f\xA0\ufeff\n\r\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000';
|
||||||
@@ -78,26 +79,26 @@
|
|||||||
}()));
|
}()));
|
||||||
|
|
||||||
// add extensions
|
// add extensions
|
||||||
funcProto._method = function() {};
|
funcProto._method = noop;
|
||||||
|
|
||||||
// set bad shims
|
// set bad shims
|
||||||
setProperty(Array, '_isArray', Array.isArray);
|
setProperty(Array, '_isArray', Array.isArray);
|
||||||
setProperty(Array, 'isArray', function() {});
|
setProperty(Array, 'isArray', noop);
|
||||||
|
|
||||||
setProperty(Date, '_now', Date.now);
|
setProperty(Date, '_now', Date.now);
|
||||||
setProperty(Date, 'now', function() {});
|
setProperty(Date, 'now', noop);
|
||||||
|
|
||||||
setProperty(Object, '_create', Object.create);
|
setProperty(Object, '_create', Object.create);
|
||||||
setProperty(Object, 'create', function() {});
|
setProperty(Object, 'create', noop);
|
||||||
|
|
||||||
setProperty(Object, '_defineProperty', Object.defineProperty);
|
setProperty(Object, '_defineProperty', Object.defineProperty);
|
||||||
setProperty(Object, 'defineProperty', function() {});
|
setProperty(Object, 'defineProperty', noop);
|
||||||
|
|
||||||
setProperty(Object, '_getPrototypeOf', Object.getPrototypeOf);
|
setProperty(Object, '_getPrototypeOf', Object.getPrototypeOf);
|
||||||
setProperty(Object, 'getPrototypeOf', function() {});
|
setProperty(Object, 'getPrototypeOf', noop);
|
||||||
|
|
||||||
setProperty(Object, '_keys', Object.keys);
|
setProperty(Object, '_keys', Object.keys);
|
||||||
setProperty(Object, 'keys', function() {});
|
setProperty(Object, 'keys', noop);
|
||||||
|
|
||||||
setProperty(objectProto, 'hasOwnProperty', (function() {
|
setProperty(objectProto, 'hasOwnProperty', (function() {
|
||||||
function wrapper(key) {
|
function wrapper(key) {
|
||||||
@@ -114,13 +115,13 @@
|
|||||||
}()));
|
}()));
|
||||||
|
|
||||||
setProperty(Number, '_isFinite', Number.isFinite);
|
setProperty(Number, '_isFinite', Number.isFinite);
|
||||||
setProperty(Number, 'isFinite', function() {});
|
setProperty(Number, 'isFinite', noop);
|
||||||
|
|
||||||
setProperty(stringProto, '_contains', stringProto.contains);
|
setProperty(stringProto, '_contains', stringProto.contains);
|
||||||
setProperty(stringProto, 'contains', stringProto._contains ? function() {} : Boolean);
|
setProperty(stringProto, 'contains', stringProto._contains ? noop : Boolean);
|
||||||
|
|
||||||
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
|
setProperty(document, '_createDocumentFragment', document.createDocumentFragment);
|
||||||
document.createDocumentFragment = function() {};
|
document.createDocumentFragment = noop;
|
||||||
|
|
||||||
setProperty(window, '_ArrayBuffer', window.ArrayBuffer);
|
setProperty(window, '_ArrayBuffer', window.ArrayBuffer);
|
||||||
if (window.ArrayBuffer && window.Uint8Array) {
|
if (window.ArrayBuffer && window.Uint8Array) {
|
||||||
|
|||||||
@@ -2025,7 +2025,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should accept a falsey `prototype` argument', 1, function() {
|
test('should accept a falsey `prototype` argument', 1, function() {
|
||||||
var expected = _.map(falsey, function() { return {}; });
|
var expected = _.map(falsey, _.constant({}));
|
||||||
|
|
||||||
var actual = _.map(falsey, function(value, index) {
|
var actual = _.map(falsey, function(value, index) {
|
||||||
return index ? _.create(value) : _.create();
|
return index ? _.create(value) : _.create();
|
||||||
|
|||||||
144
vendor/platform.js/platform.js
vendored
144
vendor/platform.js/platform.js
vendored
@@ -1,12 +1,12 @@
|
|||||||
/*!
|
/*!
|
||||||
* Platform.js v1.1.0 <http://mths.be/platform>
|
* Platform.js v1.2.0 <http://mths.be/platform>
|
||||||
* Copyright 2010-2014 John-David Dalton <http://allyoucanleet.com/>
|
* Copyright 2010-2014 John-David Dalton <http://allyoucanleet.com/>
|
||||||
* Available under MIT license <http://mths.be/mit>
|
* Available under MIT license <http://mths.be/mit>
|
||||||
*/
|
*/
|
||||||
;(function() {
|
;(function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/** Used to determine if values are of the language type Object */
|
/** Used to determine if values are of the language type `Object` */
|
||||||
var objectTypes = {
|
var objectTypes = {
|
||||||
'function': true,
|
'function': true,
|
||||||
'object': true
|
'object': true
|
||||||
@@ -66,6 +66,60 @@
|
|||||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A utility function to clean up the OS name.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {string} os The OS name to clean up.
|
||||||
|
* @param {string} [pattern] A `RegExp` pattern matching the OS name.
|
||||||
|
* @param {string} [label] A label for the OS.
|
||||||
|
*/
|
||||||
|
function cleanupOS(os, pattern, label) {
|
||||||
|
// platform tokens defined at
|
||||||
|
// http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
|
||||||
|
// http://web.archive.org/web/20081122053950/http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
|
||||||
|
var data = {
|
||||||
|
'6.3': '8.1',
|
||||||
|
'6.2': '8',
|
||||||
|
'6.1': 'Server 2008 R2 / 7',
|
||||||
|
'6.0': 'Server 2008 / Vista',
|
||||||
|
'5.2': 'Server 2003 / XP 64-bit',
|
||||||
|
'5.1': 'XP',
|
||||||
|
'5.01': '2000 SP1',
|
||||||
|
'5.0': '2000',
|
||||||
|
'4.0': 'NT',
|
||||||
|
'4.90': 'ME'
|
||||||
|
};
|
||||||
|
// detect Windows version from platform tokens
|
||||||
|
if (pattern && label && /^Win/i.test(os) &&
|
||||||
|
(data = data[0/*Opera 9.25 fix*/, /[\d.]+$/.exec(os)])) {
|
||||||
|
os = 'Windows ' + data;
|
||||||
|
}
|
||||||
|
// correct character case and cleanup
|
||||||
|
os = String(os);
|
||||||
|
|
||||||
|
if (pattern && label) {
|
||||||
|
os = os.replace(RegExp(pattern, 'i'), label);
|
||||||
|
}
|
||||||
|
|
||||||
|
os = format(
|
||||||
|
os.replace(/ ce$/i, ' CE')
|
||||||
|
.replace(/hpw/i, 'web')
|
||||||
|
.replace(/Macintosh/, 'Mac OS')
|
||||||
|
.replace(/_PowerPC/i, ' OS')
|
||||||
|
.replace(/(OS X) [^ \d]+/i, '$1')
|
||||||
|
.replace(/Mac (OS X)/, '$1')
|
||||||
|
.replace(/\/(\d)/, ' $1')
|
||||||
|
.replace(/_/g, '.')
|
||||||
|
.replace(/(?: BePC|[ .]*fc[ \d.]+)$/i, '')
|
||||||
|
.replace(/x86\.64/gi, 'x86_64')
|
||||||
|
.replace(/(Windows Phone)(?! OS)/, '$1 OS')
|
||||||
|
.split(' on ')[0]
|
||||||
|
);
|
||||||
|
|
||||||
|
return os;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An iteration utility for arrays and objects.
|
* An iteration utility for arrays and objects.
|
||||||
*
|
*
|
||||||
@@ -116,11 +170,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the internal [[Class]] of a value.
|
* Gets the internal `[[Class]]` of a value.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} value The value.
|
* @param {*} value The value.
|
||||||
* @returns {string} The [[Class]].
|
* @returns {string} The `[[Class]]`.
|
||||||
*/
|
*/
|
||||||
function getClassOf(value) {
|
function getClassOf(value) {
|
||||||
return value == null
|
return value == null
|
||||||
@@ -222,7 +276,7 @@
|
|||||||
? !!nav.likeChrome
|
? !!nav.likeChrome
|
||||||
: /\bChrome\b/.test(ua) && !/internal|\n/i.test(toString.toString());
|
: /\bChrome\b/.test(ua) && !/internal|\n/i.test(toString.toString());
|
||||||
|
|
||||||
/** Internal [[Class]] value shortcuts */
|
/** Internal `[[Class]]` value shortcuts */
|
||||||
var objectClass = 'Object',
|
var objectClass = 'Object',
|
||||||
airRuntimeClass = isCustomContext ? objectClass : 'ScriptBridgingProxyObject',
|
airRuntimeClass = isCustomContext ? objectClass : 'ScriptBridgingProxyObject',
|
||||||
enviroClass = isCustomContext ? objectClass : 'Environment',
|
enviroClass = isCustomContext ? objectClass : 'Environment',
|
||||||
@@ -245,13 +299,13 @@
|
|||||||
var doc = context.document || {};
|
var doc = context.document || {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detect Opera browser
|
* Detect Opera browser (Presto-based)
|
||||||
* http://www.howtocreate.co.uk/operaStuff/operaObject.html
|
* http://www.howtocreate.co.uk/operaStuff/operaObject.html
|
||||||
* http://dev.opera.com/articles/view/opera-mini-web-content-authoring-guidelines/#operamini
|
* http://dev.opera.com/articles/view/opera-mini-web-content-authoring-guidelines/#operamini
|
||||||
*/
|
*/
|
||||||
var opera = context.operamini || context.opera;
|
var opera = context.operamini || context.opera;
|
||||||
|
|
||||||
/** Opera [[Class]] */
|
/** Opera `[[Class]]` */
|
||||||
var operaClass = reOpera.test(operaClass = (isCustomContext && opera) ? opera['[[Class]]'] : getClassOf(opera))
|
var operaClass = reOpera.test(operaClass = (isCustomContext && opera) ? opera['[[Class]]'] : getClassOf(opera))
|
||||||
? operaClass
|
? operaClass
|
||||||
: (opera = null);
|
: (opera = null);
|
||||||
@@ -276,6 +330,9 @@
|
|||||||
/** The browser/environment version */
|
/** The browser/environment version */
|
||||||
var version = useFeatures && opera && typeof opera.version == 'function' && opera.version();
|
var version = useFeatures && opera && typeof opera.version == 'function' && opera.version();
|
||||||
|
|
||||||
|
/** A flag to indicate if the OS ends with "/ Version" */
|
||||||
|
var isSpecialCasedOS;
|
||||||
|
|
||||||
/* Detectable layout engines (order is important) */
|
/* Detectable layout engines (order is important) */
|
||||||
var layout = getLayout([
|
var layout = getLayout([
|
||||||
{ 'label': 'WebKit', 'pattern': 'AppleWebKit' },
|
{ 'label': 'WebKit', 'pattern': 'AppleWebKit' },
|
||||||
@@ -293,6 +350,7 @@
|
|||||||
'Adobe AIR',
|
'Adobe AIR',
|
||||||
'Arora',
|
'Arora',
|
||||||
'Avant Browser',
|
'Avant Browser',
|
||||||
|
'Breach',
|
||||||
'Camino',
|
'Camino',
|
||||||
'Epiphany',
|
'Epiphany',
|
||||||
'Fennec',
|
'Fennec',
|
||||||
@@ -320,6 +378,7 @@
|
|||||||
'Swiftfox',
|
'Swiftfox',
|
||||||
'WebPositive',
|
'WebPositive',
|
||||||
'Opera Mini',
|
'Opera Mini',
|
||||||
|
{ 'label': 'Opera Mini', 'pattern': 'OPiOS' },
|
||||||
'Opera',
|
'Opera',
|
||||||
{ 'label': 'Opera', 'pattern': 'OPR' },
|
{ 'label': 'Opera', 'pattern': 'OPR' },
|
||||||
'Chrome',
|
'Chrome',
|
||||||
@@ -426,7 +485,7 @@
|
|||||||
* Picks the manufacturer from an array of guesses.
|
* Picks the manufacturer from an array of guesses.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} guesses An object of guesses.
|
* @param {Array} guesses An object of guesses.
|
||||||
* @returns {null|string} The detected manufacturer.
|
* @returns {null|string} The detected manufacturer.
|
||||||
*/
|
*/
|
||||||
function getManufacturer(guesses) {
|
function getManufacturer(guesses) {
|
||||||
@@ -468,40 +527,7 @@
|
|||||||
if (!result && (result =
|
if (!result && (result =
|
||||||
RegExp('\\b' + pattern + '(?:/[\\d.]+|[ \\w.]*)', 'i').exec(ua)
|
RegExp('\\b' + pattern + '(?:/[\\d.]+|[ \\w.]*)', 'i').exec(ua)
|
||||||
)) {
|
)) {
|
||||||
// platform tokens defined at
|
result = cleanupOS(result, pattern, guess.label || guess);
|
||||||
// http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
|
|
||||||
// http://web.archive.org/web/20081122053950/http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx
|
|
||||||
data = {
|
|
||||||
'6.3': '8.1',
|
|
||||||
'6.2': '8',
|
|
||||||
'6.1': 'Server 2008 R2 / 7',
|
|
||||||
'6.0': 'Server 2008 / Vista',
|
|
||||||
'5.2': 'Server 2003 / XP 64-bit',
|
|
||||||
'5.1': 'XP',
|
|
||||||
'5.01': '2000 SP1',
|
|
||||||
'5.0': '2000',
|
|
||||||
'4.0': 'NT',
|
|
||||||
'4.90': 'ME'
|
|
||||||
};
|
|
||||||
// detect Windows version from platform tokens
|
|
||||||
if (/^Win/i.test(result) &&
|
|
||||||
(data = data[0/*Opera 9.25 fix*/, /[\d.]+$/.exec(result)])) {
|
|
||||||
result = 'Windows ' + data;
|
|
||||||
}
|
|
||||||
// correct character case and cleanup
|
|
||||||
result = format(String(result)
|
|
||||||
.replace(RegExp(pattern, 'i'), guess.label || guess)
|
|
||||||
.replace(/ ce$/i, ' CE')
|
|
||||||
.replace(/hpw/i, 'web')
|
|
||||||
.replace(/Macintosh/, 'Mac OS')
|
|
||||||
.replace(/_PowerPC/i, ' OS')
|
|
||||||
.replace(/(OS X) [^ \d]+/i, '$1')
|
|
||||||
.replace(/Mac (OS X)/, '$1')
|
|
||||||
.replace(/\/(\d)/, ' $1')
|
|
||||||
.replace(/_/g, '.')
|
|
||||||
.replace(/(?: BePC|[ .]*fc[ \d.]+)$/i, '')
|
|
||||||
.replace(/x86\.64/gi, 'x86_64')
|
|
||||||
.split(' on ')[0]);
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
@@ -578,6 +604,10 @@
|
|||||||
if (/\bSimulator\b/i.test(ua)) {
|
if (/\bSimulator\b/i.test(ua)) {
|
||||||
product = (product ? product + ' ' : '') + 'Simulator';
|
product = (product ? product + ' ' : '') + 'Simulator';
|
||||||
}
|
}
|
||||||
|
// detect Opera Mini 8+ running in Turbo / Uncompressed mode on iOS
|
||||||
|
if (name == 'Opera Mini' && /OPiOS/.test(ua)) {
|
||||||
|
description.push('running in Turbo / Uncompressed mode');
|
||||||
|
}
|
||||||
// detect iOS
|
// detect iOS
|
||||||
if (/^iP/.test(product)) {
|
if (/^iP/.test(product)) {
|
||||||
name || (name = 'Safari');
|
name || (name = 'Safari');
|
||||||
@@ -618,7 +648,7 @@
|
|||||||
// detect non-Opera versions (order is important)
|
// detect non-Opera versions (order is important)
|
||||||
if (!version) {
|
if (!version) {
|
||||||
version = getVersion([
|
version = getVersion([
|
||||||
'(?:Cloud9|CriOS|CrMo|Iron|Opera ?Mini|OPR|Raven|Silk(?!/[\\d.]+$))',
|
'(?:Cloud9|CriOS|CrMo|Iron|Opera ?Mini|OPiOS|OPR|Raven|Silk(?!/[\\d.]+$))',
|
||||||
'Version',
|
'Version',
|
||||||
qualify(name),
|
qualify(name),
|
||||||
'(?:Firefox|Minefield|NetFront)'
|
'(?:Firefox|Minefield|NetFront)'
|
||||||
@@ -639,9 +669,12 @@
|
|||||||
layout = ['NetFront'];
|
layout = ['NetFront'];
|
||||||
}
|
}
|
||||||
// detect IE 11 and above
|
// detect IE 11 and above
|
||||||
if (!name && layout == 'Trident') {
|
if (name != 'IE' && layout == 'Trident' && (data = /\brv:([\d.]+)/.exec(ua))) {
|
||||||
|
if (name) {
|
||||||
|
description.push('identifying as ' + name + (version ? ' ' + version : ''));
|
||||||
|
}
|
||||||
name = 'IE';
|
name = 'IE';
|
||||||
version = (/\brv:([\d.]+)/.exec(ua) || 0)[1];
|
version = data[1];
|
||||||
}
|
}
|
||||||
// leverage environment features
|
// leverage environment features
|
||||||
if (useFeatures) {
|
if (useFeatures) {
|
||||||
@@ -653,11 +686,10 @@
|
|||||||
arch = data.getProperty('os.arch');
|
arch = data.getProperty('os.arch');
|
||||||
os = os || data.getProperty('os.name') + ' ' + data.getProperty('os.version');
|
os = os || data.getProperty('os.name') + ' ' + data.getProperty('os.version');
|
||||||
}
|
}
|
||||||
if (isHostType(context, 'exports')) {
|
|
||||||
if (isModuleScope && isHostType(context, 'system') && (data = [context.system])[0]) {
|
if (isModuleScope && isHostType(context, 'system') && (data = [context.system])[0]) {
|
||||||
os || (os = data[0].os || null);
|
os || (os = data[0].os || null);
|
||||||
try {
|
try {
|
||||||
data[1] = (data[1] = context.require) && data[1]('ringo/engine').version;
|
data[1] = context.require('ringo/engine').version;
|
||||||
version = data[1].join('.');
|
version = data[1].join('.');
|
||||||
name = 'RingoJS';
|
name = 'RingoJS';
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
@@ -676,10 +708,6 @@
|
|||||||
name = 'Rhino';
|
name = 'Rhino';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (rhino) {
|
|
||||||
name = 'Rhino';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// detect Adobe AIR
|
// detect Adobe AIR
|
||||||
else if (getClassOf((data = context.runtime)) == airRuntimeClass) {
|
else if (getClassOf((data = context.runtime)) == airRuntimeClass) {
|
||||||
name = 'Adobe AIR';
|
name = 'Adobe AIR';
|
||||||
@@ -875,7 +903,7 @@
|
|||||||
// add layout engine
|
// add layout engine
|
||||||
if (layout && !/Avant|Nook/.test(name) && (
|
if (layout && !/Avant|Nook/.test(name) && (
|
||||||
/Browser|Lunascape|Maxthon/.test(name) ||
|
/Browser|Lunascape|Maxthon/.test(name) ||
|
||||||
/^(?:Adobe|Arora|Midori|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(name) && layout[1])) {
|
/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(name) && layout[1])) {
|
||||||
// don't add layout details to description if they are falsey
|
// don't add layout details to description if they are falsey
|
||||||
(data = layout[layout.length - 1]) && description.push(data);
|
(data = layout[layout.length - 1]) && description.push(data);
|
||||||
}
|
}
|
||||||
@@ -894,13 +922,14 @@
|
|||||||
// parse OS into an object
|
// parse OS into an object
|
||||||
if (os) {
|
if (os) {
|
||||||
data = / ([\d.+]+)$/.exec(os);
|
data = / ([\d.+]+)$/.exec(os);
|
||||||
|
isSpecialCasedOS = data && os.charAt(os.length - data[0].length - 1) == '/';
|
||||||
os = {
|
os = {
|
||||||
'architecture': 32,
|
'architecture': 32,
|
||||||
'family': data ? os.replace(data[0], '') : os,
|
'family': (data && !isSpecialCasedOS) ? os.replace(data[0], '') : os,
|
||||||
'version': data ? data[1] : null,
|
'version': data ? data[1] : null,
|
||||||
'toString': function() {
|
'toString': function() {
|
||||||
var version = this.version;
|
var version = this.version;
|
||||||
return this.family + (version ? ' ' + version : '') + (this.architecture == 64 ? ' 64-bit' : '');
|
return this.family + ((version && !isSpecialCasedOS) ? ' ' + version : '') + (this.architecture == 64 ? ' 64-bit' : '');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -911,7 +940,7 @@
|
|||||||
os.family = os.family.replace(RegExp(' *' + data), '');
|
os.family = os.family.replace(RegExp(' *' + data), '');
|
||||||
}
|
}
|
||||||
if (name && (/WOW64/i.test(ua) ||
|
if (name && (/WOW64/i.test(ua) ||
|
||||||
(useFeatures && /\w(?:86|32)$/.test(nav.cpuClass || nav.platform)))) {
|
(useFeatures && /\w(?:86|32)$/.test(nav.cpuClass || nav.platform) && !/^win32$/i.test(nav.platform)))) {
|
||||||
description.unshift('32-bit');
|
description.unshift('32-bit');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1011,6 +1040,11 @@
|
|||||||
/**
|
/**
|
||||||
* The family of the OS.
|
* The family of the OS.
|
||||||
*
|
*
|
||||||
|
* Common values include:
|
||||||
|
* "Windows", "Windows Server 2008 R2 / 7", "Windows Server 2008 / Vista",
|
||||||
|
* "Windows XP", "OS X", "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE",
|
||||||
|
* "Android", "iOS" and "Windows Phone OS"
|
||||||
|
*
|
||||||
* @memberOf platform.os
|
* @memberOf platform.os
|
||||||
* @type string|null
|
* @type string|null
|
||||||
*/
|
*/
|
||||||
|
|||||||
4
vendor/qunit-extras/qunit-extras.js
vendored
4
vendor/qunit-extras/qunit-extras.js
vendored
@@ -186,7 +186,7 @@
|
|||||||
var moduleName,
|
var moduleName,
|
||||||
modulePrinted;
|
modulePrinted;
|
||||||
|
|
||||||
/** Object shortcuts */
|
/** Object references */
|
||||||
var phantom = context.phantom,
|
var phantom = context.phantom,
|
||||||
define = context.define,
|
define = context.define,
|
||||||
document = !phantom && context.document,
|
document = !phantom && context.document,
|
||||||
@@ -689,7 +689,7 @@
|
|||||||
}());
|
}());
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
|
|
||||||
// expose shortcuts
|
// expose QUnit API on `context`
|
||||||
// exclude `module` because some environments have it as a built-in object
|
// exclude `module` because some environments have it as a built-in object
|
||||||
('asyncTest deepEqual equal equals expect notDeepEqual notEqual notStrictEqual ' +
|
('asyncTest deepEqual equal equals expect notDeepEqual notEqual notStrictEqual ' +
|
||||||
'ok raises same start stop strictEqual test throws').replace(/\S+/g, function(methodName) {
|
'ok raises same start stop strictEqual test throws').replace(/\S+/g, function(methodName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user