Skip to content

Commit ee2dee2

Browse files
author
Markus Amalthea Magnuson
committed
Fix a few typos.
1 parent 1c350ed commit ee2dee2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

page/plugins/basic-plugin-creation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Notice that to use `css()`, another method, we use `this`, not `$( this )`. This
3737

3838
##Chaining
3939

40-
This works, but there's a couple of things we need to do for our plugin to survive in the real world. One of jQuery's features is chaining, when you link five or six actions onto one selector. This is accomplished by having all jQuery object methods return the original jQuery object again (there are a few exeptions: `width()` called without parameters returns the width of the selected element, and is not chainable). Making our plugin method chainable takes one line of code:
40+
This works, but there's a couple of things we need to do for our plugin to survive in the real world. One of jQuery's features is chaining, when you link five or six actions onto one selector. This is accomplished by having all jQuery object methods return the original jQuery object again (there are a few exceptions: `width()` called without parameters returns the width of the selected element, and is not chainable). Making our plugin method chainable takes one line of code:
4141

4242
```
4343
$.fn.greenify = function() {
@@ -127,7 +127,7 @@ It would be much better to have one slot, and use parameters to control what act
127127

128128
## Using the `each()` Method
129129
Your typical jQuery object will contain references to any number of DOM elements, and that's why jQuery objects are often referred to as collections.
130-
If you want to do any manipulating with specific elements (eg: getting data an attribute, calculating specific positions) then you need to use `each()` to
130+
If you want to do any manipulating with specific elements (e.g. getting data an attribute, calculating specific positions) then you need to use `each()` to
131131
loop through the elements.
132132

133133
```
@@ -182,7 +182,7 @@ $("div").greenify({
182182
});
183183
```
184184

185-
The default value for `color` of `#556B2F` gets overriden by `$.extend()` to be orange.
185+
The default value for `color` of `#556B2F` gets overridden by `$.extend()` to be orange.
186186

187187
##Putting It Together
188188

0 commit comments

Comments
 (0)