Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #3420

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 -
Expand Down
2 changes: 1 addition & 1 deletion src/Ractive/construct.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
2 changes: 1 addition & 1 deletion src/view/items/Triple.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion src/view/items/partial/getPartialTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down