diff --git a/qunit/qunit.js b/qunit/qunit.js index 54dc1d5ec9..858f630ae4 100644 --- a/qunit/qunit.js +++ b/qunit/qunit.js @@ -1401,7 +1401,7 @@ QUnit.assert = Assert.prototype = { } }; -// Provide an alternative to assert.throws(), for enviroments that consider throws a reserved word +// Provide an alternative to assert.throws(), for environments that consider throws a reserved word // Known to us are: Closure Compiler, Narwhal (function() { /*jshint sub:true */ @@ -2963,7 +2963,7 @@ QUnit.diff = (function() { textInsert = textInsert.substring(commonlength); textDelete = textDelete.substring(commonlength); } - // Factor out any common suffixies. + // Factor out any common suffixes. commonlength = this.diffCommonSuffix(textInsert, textDelete); if (commonlength !== 0) { diffs[pointer][1] = textInsert.substring(textInsert.length - diff --git a/src/Ractive/construct.js b/src/Ractive/construct.js index 2ab9ed8ec2..f624bf9551 100755 --- a/src/Ractive/construct.js +++ b/src/Ractive/construct.js @@ -155,7 +155,7 @@ function handleAttributes(ractive) { // grab all of the passed attribute names const props = attrs.filter(a => a.t === ATTRIBUTE).map(a => a.n); - // warn about missing requireds + // warn about missing requires attributes.required.forEach(p => { if (!~props.indexOf(p)) { warnIfDebug(`Component '${component.name}' requires attribute '${p}' to be provided`); diff --git a/src/view/items/Triple.js b/src/view/items/Triple.js index c49b11f683..6075ae9139 100755 --- a/src/view/items/Triple.js +++ b/src/view/items/Triple.js @@ -104,7 +104,7 @@ export default class Triple extends Mustache { if (occupants.length) anchor = occupants[0]; } - // attach any remainging nodes to the parent + // attach any remaining nodes to the parent if (nodes.length) { const frag = createDocumentFragment(); nodes.forEach(n => frag.appendChild(n)); diff --git a/src/view/items/partial/getPartialTemplate.js b/src/view/items/partial/getPartialTemplate.js index 0bfe26fdde..db061deb28 100755 --- a/src/view/items/partial/getPartialTemplate.js +++ b/src/view/items/partial/getPartialTemplate.js @@ -7,7 +7,7 @@ import { isArray, isFunction } from 'utils/is'; import { addFunctions } from 'shared/getFunction'; export default function getPartialTemplate(ractive, name, up) { - // If the partial in instance or view heirarchy instances, great + // If the partial in instance or view hierarchy instances, great let partial = getPartialFromRegistry(ractive, name, up || {}); if (partial) return partial;