Skip to content

Commit 547df86

Browse files
nikieajpiano
authored andcommitted
Typo fixes in several articles from @nikie. Fixes jquery#237. Fixes jquery#239. Fixes jquery#241. Fixes jquery#242.
1 parent 601285b commit 547df86

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

page/ajax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ customFields:
99

1010
Traditionally webpages required reloading to update their content. For web-based email this meant that users had to manually reload their inbox to check and see if they had new mail. This had huge drawbacks: it was slow and it required user input. When the user reloaded their inbox, the server had to reconstruct the entire web page and resend all of the HTML, CSS, JavaScript, as well as the user's email. This was hugely inefficient. Ideally, the server should only have to send the user's new messages, not the entire page. By 2003 all the major browsers, solved this issue by adopting the XMLHttpRequest (XHR) object, allowing browsers to communicate with the server without requiring a page reload.
1111

12-
The XMLHttpRequest object is part of a technology called Ajax (Asynchronous JavaScript and XML). Using Ajax, data could then be passed between the browser and the server, using the XMLHttpRequest API, without having to reload the web page. With the widespread adoption of the XMLHttpRequest object it quickly became possible to build web applications like Google Maps, and GMail that that used XMLHttpRequest to get new map tiles, or new email without having to reload the entire page.
12+
The XMLHttpRequest object is part of a technology called Ajax (Asynchronous JavaScript and XML). Using Ajax, data could then be passed between the browser and the server, using the XMLHttpRequest API, without having to reload the web page. With the widespread adoption of the XMLHttpRequest object it quickly became possible to build web applications like Google Maps, and GMail that used XMLHttpRequest to get new map tiles, or new email without having to reload the entire page.
1313

1414
Ajax requests are triggered by JavaScript code; your code sends a request to a URL, and when it receives a response, a callback function can be triggered to handle the response. Because the request is asynchronous, the rest of your code continues to execute while the request is being processed, so it’s imperative that a callback be used to handle the response.
1515

page/events/history-of-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ It is possible to use `.bind()` and attach a handler to every element.
3131
As discussed in the [event delegation](/event/event-delegation) article, this is not optimal.
3232

3333
### liveQuery
34-
*liveQuery* was a popular jQuery plugin, that allowed for the creation of events which would be triggered for elements that existed now or in the future. This plugin did not use event delegation is used expensive CPU processing to poll the DOM for changes every 20ms and fire events accordingly.
34+
*liveQuery* was a popular jQuery plugin that allowed for the creation of events which would be triggered for elements that existed now or in the future. This plugin did not use event delegation and used expensive CPU processing to poll the DOM for changes every 20ms and fire events accordingly.
3535

3636

3737
### [.bind()](http://api.jquery.com/bind/) delegation (Deprecated)

page/javascript-101/scope.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ attribution:
88

99
"Scope" refers to the variables that are available to a piece of code at a given time. A lack of understanding of scope can lead to frustrating debugging experiences.
1010

11-
When a variable is declared inside of a function using the `var` keyword, it is only available to code inside of that function — code outside of that function cannot access the variable. On the other hand, functions defined inside that function will have access to to the declared variable.
11+
When a variable is declared inside of a function using the `var` keyword, it is only available to code inside of that function — code outside of that function cannot access the variable. On the other hand, functions defined inside that function will have access to the declared variable.
1212

1313
Furthermore, variables that are declared inside a function without the `var` keyword are not local to the function — JavaScript will traverse the scope chain all the way up to the window scope to find where the variable was previously defined. If the variable wasn't previously defined, it will be defined in the global scope, which can have unexpected consequences.
1414

page/plugins/basic-plugin-creation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Additionally the jQuery utility method `$.trim()` is used above to remove any le
2424

2525
##Basic Plugin Authoring
2626

27-
Let's say we want to create a plugin that makes text within a set of retrieved elements green. All we have to do is add a function called `greenify` to `$.fn` and it will available just like any other jQuery object method.
27+
Let's say we want to create a plugin that makes text within a set of retrieved elements green. All we have to do is add a function called `greenify` to `$.fn` and it will be available just like any other jQuery object method.
2828

2929
```
3030
$.fn.greenify = function() {

0 commit comments

Comments
 (0)