From: Pascal Borreli Date: Wed, 7 May 2014 06:34:53 +0000 (+0100) Subject: Fixed typos X-Git-Tag: v0.12.3~1^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=831c7f5924122cff794c4b6c35b96276cd79f824;p=electron.git Fixed typos --- diff --git a/atom/browser/api/lib/browser-window.coffee b/atom/browser/api/lib/browser-window.coffee index 421d8842..051911e8 100644 --- a/atom/browser/api/lib/browser-window.coffee +++ b/atom/browser/api/lib/browser-window.coffee @@ -33,7 +33,7 @@ BrowserWindow::_init = -> id = BrowserWindow.windows.add this # Remove the window from weak map immediately when it's destroyed, since we - # could be iterating windows before GC happended. + # could be iterating windows before GC happened. @once 'closed', -> BrowserWindow.windows.remove id if BrowserWindow.windows.has id diff --git a/atom/common/api/api_messages.h b/atom/common/api/api_messages.h index 0e857af3..641e9915 100644 --- a/atom/common/api/api_messages.h +++ b/atom/common/api/api_messages.h @@ -11,7 +11,7 @@ #include "ipc/ipc_message_macros.h" // The message starter should be declared in ipc/ipc_message_start.h. Since -// we don't wan't to patch Chromium, we just pretend to be Content Shell. +// we don't want to patch Chromium, we just pretend to be Content Shell. #define IPC_MESSAGE_START ShellMsgStart diff --git a/docs/api/app.md b/docs/api/app.md index 4c34f883..10264552 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -23,7 +23,7 @@ Under most cases you should just do everything in `ready` event. ## Event: ready -Emitted when atom-shell has done everything initializaiton. +Emitted when atom-shell has done everything initialization. ## Event: window-all-closed diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 60194ace..07417592 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -68,12 +68,12 @@ An example of enable node integration in iframe with `node-integration` set to ``` -And in atom-shell, the security limitaion of iframe is stricter than normal +And in atom-shell, the security limitation of iframe is stricter than normal browser, by default iframe is sandboxed with all permissions except the `allow-same-origin`, which means iframe could not access parent's js context. If you want to enable things like `parent.window.process.exit()` in iframe, -you should explictly set `sandbox` to `none`: +you should explicitly set `sandbox` to `none`: ```html @@ -118,7 +118,7 @@ remove the reference to the window and avoid using it anymore. ### Event: 'unresponsive' -Emiited when the web page becomes unresponsive. +Emitted when the web page becomes unresponsive. ### Event: 'responsive' @@ -126,7 +126,7 @@ Emitted when the unresponsive web page becomes responsive again. ### Event: 'blur' -Emiited when window loses focus. +Emitted when window loses focus. ### Class Method: BrowserWindow.getAllWindows() @@ -155,7 +155,7 @@ Get the `WebContents` of devtools of this window. Force closing the window, the `unload` and `beforeunload` event won't be emitted for the web page, and `close` event would also not be emitted for this window, -but it would gurrantee the `closed` event to be emitted. +but it would guarantee the `closed` event to be emitted. You should only use this method when the web page has crashed. diff --git a/docs/api/protocol.md b/docs/api/protocol.md index 7e566ba0..3fd2dad6 100644 --- a/docs/api/protocol.md +++ b/docs/api/protocol.md @@ -1,7 +1,7 @@ # protocol The `protocol` module can register a new protocol or intercept an existing -protocol, so you can custom the response to the requests for vairous protocols. +protocol, so you can custom the response to the requests for various protocols. An example of implementing a protocol that has the same effect with the `file://` protocol: diff --git a/docs/development/source-code-directory-structure.md b/docs/development/source-code-directory-structure.md index 44d15b45..1f2dd077 100644 --- a/docs/development/source-code-directory-structure.md +++ b/docs/development/source-code-directory-structure.md @@ -15,7 +15,7 @@ to understand the source code better. * **app** - System entry code. * **browser** - The frontend including the main window, UI, and all browser side things. This talks to the renderer to manage web pages. - * **lib** - Javascript part of browser sidde initialization code. + * **lib** - Javascript part of browser side initialization code. * **ui** - Implementation of UI stuff for different platforms. * **cocoa** - Cocoa specific source code. * **gtk** - GTK+ specific source code. diff --git a/docs/tutorial/use-native-node-modules.md b/docs/tutorial/use-native-node-modules.md index 0640b79b..e8918d5c 100644 --- a/docs/tutorial/use-native-node-modules.md +++ b/docs/tutorial/use-native-node-modules.md @@ -15,7 +15,7 @@ $ apm install . But you should notice that `apm install module` won't work because it will install a user package for [Atom Editor](https://github.com/atom/atom) instead. -## Native Node module compability +## Native Node module compatibility Since Node v0.11.x there were vital changes in the V8 API. So generally all native modules written for Node v0.10.x wouldn't work for Node v0.11.x. Additionally diff --git a/script/create-dist.py b/script/create-dist.py index 59c8c280..069a86c0 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -12,7 +12,7 @@ from lib.util import scoped_cwd, rm_rf, get_atom_shell_version, make_zip, \ safe_mkdir, execute -ATOM_SHELL_VRESION = get_atom_shell_version() +ATOM_SHELL_VERSION = get_atom_shell_version() SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) DIST_DIR = os.path.join(SOURCE_ROOT, 'dist') @@ -160,7 +160,7 @@ def copy_license(): def create_version(): version_path = os.path.join(SOURCE_ROOT, 'dist', 'version') with open(version_path, 'w') as version_file: - version_file.write(ATOM_SHELL_VRESION) + version_file.write(ATOM_SHELL_VERSION) def download_libchromiumcontent_symbols(url): @@ -188,7 +188,7 @@ def create_symbols(): def create_dist_zip(): - dist_name = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VRESION, + dist_name = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VERSION, TARGET_PLATFORM) zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name) @@ -199,7 +199,7 @@ def create_dist_zip(): def create_symbols_zip(): - dist_name = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VRESION, + dist_name = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VERSION, TARGET_PLATFORM) zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name) diff --git a/script/upload.py b/script/upload.py index 8f549052..9f11d637 100755 --- a/script/upload.py +++ b/script/upload.py @@ -21,13 +21,13 @@ TARGET_PLATFORM = { }[sys.platform] ATOM_SHELL_REPO = 'atom/atom-shell' -ATOM_SHELL_VRESION = get_atom_shell_version() +ATOM_SHELL_VERSION = get_atom_shell_version() SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'Release') DIST_DIR = os.path.join(SOURCE_ROOT, 'dist') -DIST_NAME = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VRESION, TARGET_PLATFORM) -SYMBOLS_NAME = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VRESION, +DIST_NAME = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VERSION, TARGET_PLATFORM) +SYMBOLS_NAME = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VERSION, TARGET_PLATFORM) @@ -39,9 +39,9 @@ def main(): execute([sys.executable, create_dist]) build_version = get_atom_shell_build_version() - if not ATOM_SHELL_VRESION.startswith(build_version): + if not ATOM_SHELL_VERSION.startswith(build_version): error = 'Tag name ({0}) should match build version ({1})\n'.format( - ATOM_SHELL_VRESION, build_version) + ATOM_SHELL_VERSION, build_version) sys.stderr.write(error) sys.stderr.flush() return 1 @@ -62,7 +62,7 @@ def main(): def parse_args(): parser = argparse.ArgumentParser(description='upload distribution file') parser.add_argument('-v', '--version', help='Specify the version', - default=ATOM_SHELL_VRESION) + default=ATOM_SHELL_VERSION) parser.add_argument('-p', '--publish-release', help='Publish the release', action='store_true')