Commit 3d77c2ee authored by Oleg Gaidarenko's avatar Oleg Gaidarenko

README: various text fixes

Thank you @essamjoubori, @bcbcb, @namlede

Ref 31b63fc23674ede657f019783ad7b942bb83f9c3
parent a4e31a8e
...@@ -47,7 +47,7 @@ cd jquery && npm run build ...@@ -47,7 +47,7 @@ cd jquery && npm run build
``` ```
The built version of jQuery will be put in the `dist/` subdirectory, along with the minified copy and associated map file. The built version of jQuery will be put in the `dist/` subdirectory, along with the minified copy and associated map file.
If you want create custom build or help with jQuery development, it would be better to install [grunt command line interface](https://github.com/gruntjs/grunt-cli) as a global package: If you want to create custom build or help with jQuery development, it would be better to install [grunt command line interface](https://github.com/gruntjs/grunt-cli) as a global package:
``` ```
npm install -g grunt-cli npm install -g grunt-cli
...@@ -57,7 +57,7 @@ Make sure you have `grunt` installed by testing: ...@@ -57,7 +57,7 @@ Make sure you have `grunt` installed by testing:
grunt -V grunt -V
``` ```
Now by running the `grunt` command, in the jquery directory, you can build a full version of jQuery, just like with a `npm run build` command: Now by running the `grunt` command, in the jquery directory, you can build a full version of jQuery, just like with an `npm run build` command:
``` ```
grunt grunt
``` ```
...@@ -209,7 +209,7 @@ As the source code is handled by the Git version control system, it's useful to ...@@ -209,7 +209,7 @@ As the source code is handled by the Git version control system, it's useful to
### Cleaning ### ### Cleaning ###
If you want to purge your working directory back to the status of upstream, following commands can be used (remember everything you've worked on is gone after these): If you want to purge your working directory back to the status of upstream, the following commands can be used (remember everything you've worked on is gone after these):
```bash ```bash
git reset --hard upstream/master git reset --hard upstream/master
...@@ -218,7 +218,7 @@ git clean -fdx ...@@ -218,7 +218,7 @@ git clean -fdx
### Rebasing ### ### Rebasing ###
For feature/topic branches, you should always use the `--rebase` flag to `git pull`, or if you are usually handling many temporary "to be in a github pull request" branches, run following to automate this: For feature/topic branches, you should always use the `--rebase` flag to `git pull`, or if you are usually handling many temporary "to be in a github pull request" branches, run the following to automate this:
```bash ```bash
git config branch.autosetuprebase local git config branch.autosetuprebase local
...@@ -230,7 +230,7 @@ git config branch.autosetuprebase local ...@@ -230,7 +230,7 @@ git config branch.autosetuprebase local
If you're getting merge conflicts when merging, instead of editing the conflicted files manually, you can use the feature If you're getting merge conflicts when merging, instead of editing the conflicted files manually, you can use the feature
`git mergetool`. Even though the default tool `xxdiff` looks awful/old, it's rather useful. `git mergetool`. Even though the default tool `xxdiff` looks awful/old, it's rather useful.
Following are some commands that can be used there: The following are some commands that can be used there:
* `Ctrl + Alt + M` - automerge as much as possible * `Ctrl + Alt + M` - automerge as much as possible
* `b` - jump to next merge conflict * `b` - jump to next merge conflict
...@@ -354,7 +354,7 @@ callback( jQueryFromIFrame, iFrameWindow, iFrameDocument ); ...@@ -354,7 +354,7 @@ callback( jQueryFromIFrame, iFrameWindow, iFrameDocument );
Loads a given page constructing a url with fileName: `"./data/" + fileName + ".html"` Loads a given page constructing a url with fileName: `"./data/" + fileName + ".html"`
The given callback is fired when window.iframeCallback is called by the page. The given callback is fired when window.iframeCallback is called by the page.
The arguments passed to the callback are the same as the The arguments passed to the callback are the same as the
arguments passed to window.iframeCallback, whatever that may be arguments passed to window.iframeCallback, whatever that may be.
```js ```js
testIframeWithCallback( testName, fileName, callback ); testIframeWithCallback( testName, fileName, callback );
......
...@@ -47,7 +47,7 @@ testIframeWithCallback( "A background on the testElement does not cause IE8 to c ...@@ -47,7 +47,7 @@ testIframeWithCallback( "A background on the testElement does not cause IE8 to c
}); });
// This test checkes CSP only for browsers with "Content-Security-Policy" header support // This test checks CSP only for browsers with "Content-Security-Policy" header support
// i.e. no old WebKit or old Firefox // i.e. no old WebKit or old Firefox
testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions",
"support/csp.php", "support/csp.php",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment