Skip to content

Commit

Permalink
Spelling (#2267)
Browse files Browse the repository at this point in the history
* spelling: arguments

* spelling: because

* spelling: component

* spelling: constructor

* spelling: despite

* spelling: expandoid

* spelling: explicitly

* spelling: falsy

* spelling: family

* spelling: indicates

* spelling: injected

* spelling: javascript

* spelling: jquery

* spelling: minimum

* spelling: occasionally

* spelling: official

* spelling: overridden

* spelling: paths

* spelling: positive

* spelling: quirksmode

* spelling: separate

* spelling: simultaneously

* spelling: synchronously

* spelling: undefined

* spelling: xobject

* spelling: chromium

* spelling: define

* spelling: default

* spelling: specifier
  • Loading branch information
jsoref authored and rejas committed May 28, 2018
1 parent 87c8b22 commit 0ebc6e0
Show file tree
Hide file tree
Showing 24 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion bin/modernizr
Expand Up @@ -99,7 +99,7 @@ if (argv.m) {
log('metadata saved to ' + metaDest);
});
if (!argv.d) {
// return early unless we explictly request Modernizr to be built
// return early unless we explicitly request Modernizr to be built
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/audio/preload.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion feature-detects/css/backgroundposition-shorthand.js
Expand Up @@ -18,7 +18,7 @@
!*/
/* DOC
Detects if you can use the shorthand method to define multiple parts of an
element's background-position simultaniously.
element's background-position simultaneously.
eg `background-position: right 10px bottom 10px`
*/
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/css/displaytable.js
Expand Up @@ -16,7 +16,7 @@
`display: table` and `table-cell` test. (both are tested under one name `table-cell` )
*/
define(['Modernizr', 'testStyles'], function(Modernizr, testStyles) {
// If a document is in rtl mode this test will fail so we force ltr mode on the injeced
// If a document is in rtl mode this test will fail so we force ltr mode on the injected
// element https://github.com/Modernizr/Modernizr/issues/716
testStyles('#modernizr{display: table; direction: ltr}#modernizr div{display: table-cell; padding: 10px}', function(elem) {
var ret;
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/css/fontface.js
Expand Up @@ -6,7 +6,7 @@
"tags": ["css"],
"knownBugs": [
"False Positive: WebOS https://github.com/Modernizr/Modernizr/issues/342",
"False Postive: WP7 https://github.com/Modernizr/Modernizr/issues/538"
"False Positive: WP7 https://github.com/Modernizr/Modernizr/issues/538"
],
"notes": [{
"name": "@font-face detection routine by Diego Perini",
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/css/nthchild.js
Expand Up @@ -24,7 +24,7 @@ Detects support for the ':nth-child()' CSS pseudo-selector.
define(['Modernizr', 'testStyles'], function(Modernizr, testStyles) {
// 5 `<div>` elements with `1px` width are created.
// Then every other element has its `width` set to `2px`.
// A Javascript loop then tests if the `<div>`s have the expected width
// A JavaScript loop then tests if the `<div>`s have the expected width
// using the modulus operator.
testStyles('#modernizr div {width:1px} #modernizr div:nth-child(2n) {width:2px;}', function(elem) {
var elems = elem.getElementsByTagName('div');
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/css/textalignlast.js
Expand Up @@ -5,7 +5,7 @@
"tags": ["css"],
"knownBugs": ["IE does not support the 'start' or 'end' values."],
"notes": [{
"name": "Quicksmode",
"name": "Quirksmode",
"href": "http://www.quirksmode.org/css/text/textalignlast.html"
},{
"name": "MDN",
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/css/transforms3d.js
Expand Up @@ -5,7 +5,7 @@
"caniuse": "transforms3d",
"tags": ["css"],
"warnings": [
"Chrome may occassionally fail this test on some systems; more info: https://code.google.com/p/chromium/issues/detail?id=129004"
"Chrome may occasionally fail this test on some systems; more info: https://code.google.com/p/chromium/issues/detail?id=129004"
]
}
!*/
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/flash.js
Expand Up @@ -69,7 +69,7 @@ define(['Modernizr', 'createElement', 'docElement', 'addTest', 'getBody', 'isSVG
// Need to do this in the body (fake or otherwise) otherwise IE8 complains
body.appendChild(embed);

// Pan doesn't exist in the embed if its IE (its on the ActiveXObjeect)
// Pan doesn't exist in the embed if its IE (its on the ActiveXObject)
// so this check is for all other browsers.
if (!('Pan' in embed) && !activex) {
attachBody(body);
Expand Down
8 changes: 4 additions & 4 deletions feature-detects/img/webp.js
Expand Up @@ -10,7 +10,7 @@
"name": "Webp Info",
"href": "https://developers.google.com/speed/webp/"
}, {
"name": "Chormium blog - Chrome 32 Beta: Animated WebP images and faster Chrome for Android touch input",
"name": "Chromium blog - Chrome 32 Beta: Animated WebP images and faster Chrome for Android touch input",
"href": "https://blog.chromium.org/2013/11/chrome-32-beta-animated-webp-images-and.html"
}, {
"name": "Webp Lossless Spec",
Expand All @@ -19,7 +19,7 @@
"name": "Article about WebP support on Android browsers",
"href": "http://www.wope-framework.com/en/2013/06/24/webp-support-on-android-browsers/"
}, {
"name": "Chormium WebP announcement",
"name": "Chromium WebP announcement",
"href": "https://blog.chromium.org/2011/11/lossless-and-transparency-encoding-in.html?m=1"
}]
}
Expand Down Expand Up @@ -60,13 +60,13 @@ define(['Modernizr', 'addTest'], function(Modernizr, addTest) {

function addResult(event) {
// if the event is from 'onload', check the see if the image's width is
// 1 pixel (which indiciates support). otherwise, it fails
// 1 pixel (which indicates support). otherwise, it fails

var result = event && event.type === 'load' ? image.width == 1 : false;
var baseTest = name === 'webp';

// if it is the base test, and the result is false, just set a literal false
// rather than use the Boolean contrsuctor
// rather than use the Boolean constructor
addTest(name, (baseTest && result) ? new Boolean(result) : result);

if (cb) {
Expand Down
2 changes: 1 addition & 1 deletion feature-detects/inputtypes.js
Expand Up @@ -96,7 +96,7 @@ define(['Modernizr', 'inputElem', 'docElement'], function(Modernizr, inputElem,
bool = inputElem.checkValidity && inputElem.checkValidity() === false;

} else {
// If the upgraded input compontent rejects the :) text, we got a winner
// If the upgraded input component rejects the :) text, we got a winner
bool = inputElem.value != smile;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/polyfills.json
Expand Up @@ -11,7 +11,7 @@
"authors": ["Hendrik Beskow"],
"href": "https://gist.github.com/Asmod4n/6030828",
"licenses": ["MIT"],
"notes": ["A Polyfill to fix the differences in WebKit, Blink and Gecko HTML5 Desktop Notifications, also adds a way to add your own Javascript Notifications in case your Browser doesn't support them natively."]
"notes": ["A Polyfill to fix the differences in WebKit, Blink and Gecko HTML5 Desktop Notifications, also adds a way to add your own JavaScript Notifications in case your Browser doesn't support them natively."]
},
"desktop-notify": {
"name": "HTML5-Desktop-Notifications",
Expand Down
4 changes: 2 additions & 2 deletions src/addTest.js
Expand Up @@ -81,7 +81,7 @@ define(['ModernizrProto', 'Modernizr', 'hasOwnProp', 'setClasses'], function(Mod
/**
* addTest allows you to define your own feature detects that are not currently
* included in Modernizr (under the covers it's the exact same code Modernizr
* uses for its own [feature detections](https://github.com/Modernizr/Modernizr/tree/master/feature-detects)). Just like the offical detects, the result
* uses for its own [feature detections](https://github.com/Modernizr/Modernizr/tree/master/feature-detects)). Just like the official detects, the result
* will be added onto the Modernizr object, as well as an appropriate className set on
* the html element when configured to do so
*
Expand Down Expand Up @@ -119,7 +119,7 @@ define(['ModernizrProto', 'Modernizr', 'hasOwnProp', 'setClasses'], function(Mod
* in a statement that will return a boolean value works just fine.
*
* ```js
* Modernizr.addTest('hasJquery', 'jQuery' in window);
* Modernizr.addTest('hasjquery', 'jQuery' in window);
* ```
*
* Just like before, when the above runs `Modernizr.hasjquery` will be true if
Expand Down
8 changes: 4 additions & 4 deletions src/html5printshiv.js
Expand Up @@ -31,7 +31,7 @@ define(['isSVG'], function(isSVG) {
var expando = '_html5shiv';

/** The id for the the documents expando */
var expanID = 0;
var expandoID = 0;

/** Cached data for each document */
var expandoData = {};
Expand Down Expand Up @@ -119,9 +119,9 @@ define(['isSVG'], function(isSVG) {
var data = expandoData[ownerDocument[expando]];
if (!data) {
data = {};
expanID++;
ownerDocument[expando] = expanID;
expandoData[expanID] = data;
expandoID++;
ownerDocument[expando] = expandoID;
expandoData[expandoID] = data;
}
return data;
}
Expand Down
8 changes: 4 additions & 4 deletions src/html5shiv.js
Expand Up @@ -30,7 +30,7 @@ define(['isSVG'], function(isSVG) {
var expando = '_html5shiv';

/** The id for the the documents expando */
var expanID = 0;
var expandoID = 0;

/** Cached data for each document */
var expandoData = {};
Expand Down Expand Up @@ -118,9 +118,9 @@ define(['isSVG'], function(isSVG) {
var data = expandoData[ownerDocument[expando]];
if (!data) {
data = {};
expanID++;
ownerDocument[expando] = expanID;
expandoData[expanID] = data;
expandoID++;
ownerDocument[expando] = expandoID;
expandoData[expandoID] = data;
}
return data;
}
Expand Down
2 changes: 1 addition & 1 deletion src/testDOMProps.js
Expand Up @@ -25,7 +25,7 @@ define(['is', 'fnBind'], function(is, fnBind) {

// let's bind a function
if (is(item, 'function')) {
// bind to obj unless overriden
// bind to obj unless overridden
return fnBind(item, elem || obj);
}

Expand Down
2 changes: 1 addition & 1 deletion test/browser/integration/caniuse.js
Expand Up @@ -242,7 +242,7 @@ window.caniusecb = function(caniuse) {
}


// we breakout flexbox sniffing into three seperate detects, which borks the caniuse mappings,
// we breakout flexbox sniffing into three separate detects, which borks the caniuse mappings,
// since no browser supports all three
if (o.ciufeature === 'flexbox') {
return it('Caniuse result for flexbox matches Modernizr\'s result for flexbox', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/browser/setup.js
Expand Up @@ -13,7 +13,7 @@ $(document).ready(function() {
mocha.suite.afterAll('send coverage', function(done) {
// ensure timeout errors block normal reporting, to ensure the entire suite is retried
if (!window.global_test_results) {
// opera 12 can't handle the defualt `window.mochaResults`, so we build
// opera 12 can't handle the default `window.mochaResults`, so we build
// generic test data instead
window.global_test_results = results;
}
Expand Down
2 changes: 1 addition & 1 deletion test/browser/src/addTest.js
Expand Up @@ -178,7 +178,7 @@ describe('addTest', function() {
expect(setClasses.calledWith(['no-fakedetect'])).to.be(true);
});

it('sets a negative class for a falsey value', function() {
it('sets a negative class for a falsy value', function() {
addTest('fakedetect', function() {return undefined;});
expect(setClasses.callCount).to.be(1);
expect(setClasses.calledWith(['no-fakedetect'])).to.be(true);
Expand Down
2 changes: 1 addition & 1 deletion test/browser/src/load.js
Expand Up @@ -106,7 +106,7 @@ describe('load', function() {
afterEach(function() {
yepnope = undefined;
// ie <= 8 doesn't support deleting window properties,
// so we fallback to setting it to undefiend
// so we fallback to setting it to undefined
try {
delete window.yepnope;
} catch (e) {
Expand Down
24 changes: 12 additions & 12 deletions test/js/lib/sinon.js
Expand Up @@ -199,7 +199,7 @@
// contain already visited objects
var objects1 = [],
objects2 = [],
// contain pathes (position in the object structure)
// contain paths (position in the object structure)
// of the already visited objects
// indexes same as in objects arrays
paths1 = [],
Expand Down Expand Up @@ -314,7 +314,7 @@
index1 = isObject1 ? getIndex(objects1, value1) : -1;
index2 = isObject2 ? getIndex(objects2, value2) : -1;

// determine the new pathes of the objects
// determine the new paths of the objects
// - for non cyclic objects the current path will be extended
// by current property name
// - for cyclic objects the stored path is taken
Expand All @@ -330,7 +330,7 @@
return true;
}

// remember the current objects and their pathes
// remember the current objects and their paths
if (index1 === -1 && isObject1) {
objects1.push(value1);
paths1.push(newPath1);
Expand Down Expand Up @@ -2449,7 +2449,7 @@

var original = this;
var fake = this.instantiateFake();
fake.matchingAguments = args;
fake.matchingArguments = args;
fake.parent = this;
push.call(this.fakes, fake);

Expand All @@ -2473,7 +2473,7 @@
},

matches: function (args, strict) {
var margs = this.matchingAguments;
var margs = this.matchingArguments;

if (margs.length <= args.length &&
sinon.deepEqual(margs, args.slice(0, margs.length))) {
Expand All @@ -2486,16 +2486,16 @@
var args = slice.call(arguments, 1);
var formatter;

return (format || '').replace(/%(.)/g, function (match, specifyer) {
formatter = spyApi.formatters[specifyer];
return (format || '').replace(/%(.)/g, function (match, specifier) {
formatter = spyApi.formatters[specifier];

if (typeof formatter == 'function') {
return formatter.call(null, spy, args);
} else if (!isNaN(parseInt(specifyer, 10))) {
return sinon.format(args[specifyer - 1]);
} else if (!isNaN(parseInt(specifier, 10))) {
return sinon.format(args[specifier - 1]);
}

return '%' + specifyer;
return '%' + specifier;
});
}
};
Expand Down Expand Up @@ -4866,7 +4866,7 @@
/**
* The Sinon "server" mimics a web server that receives requests from
* sinon.FakeXMLHttpRequest and provides an API to respond to those requests,
* both synchronously and asynchronously. To respond synchronuously, canned
* both synchronously and asynchronously. To respond synchronously, canned
* answers have to be provided upfront.
*
* @author Christian Johansen (christian@cjohansen.no)
Expand Down Expand Up @@ -5102,7 +5102,7 @@
* Add-on for sinon.fakeServer that automatically handles a fake timer along with
* the FakeXMLHttpRequest. The direct inspiration for this add-on is jQuery
* 1.3.x, which does not use xhr object's onreadystatehandler at all - instead,
* it polls the object for completion with setInterval. Dispite the direct
* it polls the object for completion with setInterval. Despite the direct
* motivation, there is nothing jQuery-specific in this file, so it can be used
* in any environment where the ajax implementation depends on setInterval or
* setTimeout.
Expand Down
4 changes: 2 additions & 2 deletions test/js/lib/uaparser.js
Expand Up @@ -201,9 +201,9 @@

if (!m) { return null; }

var familly = famRep ? famRep.replace('$1', m[1]) : m[1];
var family = famRep ? famRep.replace('$1', m[1]) : m[1];

var obj = new UserAgent(familly);
var obj = new UserAgent(family);
obj.major = parseInt(v1Rep ? v1Rep : m[2]);
obj.minor = m[3] ? parseInt(m[3]) : null;
obj.patch = m[4] ? parseInt(m[4]) : null;
Expand Down
2 changes: 1 addition & 1 deletion test/node/lib/build.js
Expand Up @@ -70,7 +70,7 @@ describe('cli/build', function() {

build(config, function(file) {
var parsedConfig = file.match(configRE);
//use eval becuase the minified code creates non valid JSON.
//use eval because the minified code creates non valid JSON.
// eslint-disable-next-line
parsedConfig = eval('(' + parsedConfig[1].replace(/'/g, '"') + ')');
expect(parsedConfig.classPrefix).to.be(prefix);
Expand Down
2 changes: 1 addition & 1 deletion test/node/lib/metadata.js
Expand Up @@ -67,7 +67,7 @@ describe('cli/metadata', function() {
var metadata = proxyquire(root + 'lib/metadata', {
'fs': {
'readFileSync': function() {
return 'defin([]),';
return 'define_([]),';
}
}
});
Expand Down

0 comments on commit 0ebc6e0

Please sign in to comment.