From 7e71bf356b3df717316427fb3744320afdd6aba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hrvoje=20=C5=A0imi=C4=87?= Date: Mon, 10 Oct 2016 12:26:47 +0200 Subject: [PATCH] fix various typos and grammar errors in comments (#834) --- app/config.js | 2 +- app/index.js | 10 +++++----- lib/actions/sessions.js | 2 +- lib/actions/ui.js | 2 +- lib/component.js | 1 + lib/components/split-pane.js | 1 + lib/hterm.js | 4 ++-- lib/reducers/ui.js | 9 ++++----- lib/utils/effects.js | 14 ++++++++------ lib/utils/file.js | 18 +++++++++++------- lib/utils/key-code.js | 4 ++-- lib/utils/plugins.js | 4 ++-- lib/utils/selection.js | 2 +- 13 files changed, 40 insertions(+), 33 deletions(-) diff --git a/app/config.js b/app/config.js index f304cbd1..1558aec9 100644 --- a/app/config.js +++ b/app/config.js @@ -74,7 +74,7 @@ exports.subscribe = function (fn) { exports.init = function () { // for backwards compatibility with hyperterm - // (prior to the renme), we try to rename + // (prior to the rename), we try to rename // on behalf of the user try { statSync(pathLegacy); diff --git a/app/index.js b/app/index.js index f7b3acac..0046dd99 100644 --- a/app/index.js +++ b/app/index.js @@ -34,7 +34,7 @@ app.config = config; app.plugins = plugins; app.getWindows = () => new Set([...windowSet]); // return a clone -// function to retrive the last focused window in windowSet; +// function to retrieve the last focused window in windowSet; // added to app object in order to expose it to plugins. app.getLastFocusedWindow = () => { if (!windowSet.size) { @@ -160,8 +160,8 @@ app.on('ready', () => installDevExtensions(isDev).then(() => { } // app.windowCallback is the createWindow callback - // that can be setted before the 'ready' app event - // and createWindow deifinition. It's exeuted in place of + // that can be set before the 'ready' app event + // and createWindow deifinition. It's executed in place of // the callback passed as parameter, and deleted right after. (app.windowCallback || fn)(win); delete (app.windowCallback); @@ -207,7 +207,7 @@ app.on('ready', () => installDevExtensions(isDev).then(() => { }); // TODO: this goes away when we are able to poll - // for the title ourseleves, instead of relying + // for the title ourselves, instead of relying // on Session and focus/blur to subscribe rpc.on('focus', ({uid}) => { const session = sessions.get(uid); @@ -400,7 +400,7 @@ app.on('open-file', (event, path) => { } else if (!lastWindow && {}.hasOwnProperty.call(app, 'createWindow')) { app.createWindow(callback); } else { - // if createWindow not exists yet ('ready' event was not fired), + // If createWindow doesn't exist yet ('ready' event was not fired), // sets his callback to an app.windowCallback property. app.windowCallback = callback; } diff --git a/lib/actions/sessions.js b/lib/actions/sessions.js index 9485b1ff..bada1d0f 100644 --- a/lib/actions/sessions.js +++ b/lib/actions/sessions.js @@ -167,7 +167,7 @@ export function sendSessionData(uid, data) { type: SESSION_USER_DATA, data, effect() { - // If no uid is passed, data is sended to the active session. + // If no uid is passed, data is sent to the active session. const targetUid = uid || getState().sessions.activeUid; rpc.emit('data', {uid: targetUid, data}); } diff --git a/lib/actions/ui.js b/lib/actions/ui.js index 74471e86..84cb627b 100644 --- a/lib/actions/ui.js +++ b/lib/actions/ui.js @@ -212,7 +212,7 @@ export function showPreferences() { rpc.once('session data', () => { dispatch(sendSessionData( uid, - // Leading space prevents command to be store in shell history + // Leading space prevents command to be stored in shell history [' echo Attempting to open ~/.hyper.js with your \$EDITOR', // eslint-disable-line no-useless-escape ' echo If it fails, open it manually with your favorite editor!', ' bash -c \'exec env ${EDITOR:=' + editorFallback + '} ~/.hyper.js\'', diff --git a/lib/component.js b/lib/component.js index 013df5e5..3e4b0f43 100644 --- a/lib/component.js +++ b/lib/component.js @@ -40,6 +40,7 @@ export default class Component extends React.Component { if (c) { // we compute the global name from the given // css class and we prepend the component name + // // it's important classes never get mangled by // uglifiers so that we can avoid collisions const component = this.constructor.name diff --git a/lib/components/split-pane.js b/lib/components/split-pane.js index f6fc747e..bce58cf0 100644 --- a/lib/components/split-pane.js +++ b/lib/components/split-pane.js @@ -167,6 +167,7 @@ export default class SplitPane extends Component { // this shim is used to make sure mousemove events // trigger in all the draggable area of the screen + // // this is not the case due to hterm's