Skip to content

Commit

Permalink
Documentation fixes. Thank you all contributors and reporters
Browse files Browse the repository at this point in the history
  • Loading branch information
fakedarren committed Feb 27, 2010
1 parent 61d6c7c commit b5a0c82
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Docs/Class/Class.Extras.md
Expand Up @@ -327,7 +327,7 @@ Class: Options {#Options}

A Utility Class. Its methods can be implemented with [Class:implement][] into any [Class][].
Used to automate the setting of a Class instance's options.
Will also add Class [Events](#Events) when the option property begins with 'on' and is followed by a capital letter (e.g. 'onComplete' adds a 'complete' event).
Will also add Class [Events](#Events) when the option property begins with 'on' and is followed by a capital letter (e.g. 'onComplete' adds a 'complete' event). You will need to call this.setOptions() for this to have an effect, however.

### Syntax:

Expand Down
2 changes: 1 addition & 1 deletion Docs/Element/Element.md
Expand Up @@ -647,7 +647,7 @@ A text node will be created inside this Element, in either the top or bottom pos
### Arguments:

1. text - (*string*) The text to append.
1. where - (*string*, optional: default 'bottom') The position to inject the text to.
1. where - (*string*, optional: default 'bottom') The position to inject the text to. Values accepted are 'top', 'bottom', 'before' and 'after'.

### Returns:

Expand Down
6 changes: 3 additions & 3 deletions Docs/Fx/Fx.Transitions.md
Expand Up @@ -15,8 +15,8 @@ A collection of tweening transitions for use with the [Fx][] classes.

### Examples:

//Elastic.easeOut with default values:
var myFx = $('myElement').effect('margin', {transition: Fx.Transitions.Elastic.easeOut});
$('myElement').set('tween', {transition: Fx.Transitions.Elastic.easeOut});
$('myElement').tween('margin-top', 100);

### See also:

Expand Down Expand Up @@ -144,4 +144,4 @@ Returns an [Fx][] transition function with 'easeIn', 'easeOut', and 'easeInOut'
[Sine]: ../Docs/assets/images/Sine.png
[Back]: ../Docs/assets/images/Back.png
[Bounce]: ../Docs/assets/images/Bounce.png
[Elastic]: ../Docs/assets/images/Elastic.png
[Elastic]: ../Docs/assets/images/Elastic.png
24 changes: 12 additions & 12 deletions Docs/Native/Array.md
Expand Up @@ -627,15 +627,15 @@ Creates a copy of an Array. Useful for applying the Array prototypes to iterable

[Array]: /core/Native/Array
[Function:bind]: /core/Native/Function/#Function:bind
[MDC Array]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array
[MDC Array:every]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:every
[MDC Array:filter]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:filter
[MDC Array:indexOf]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:indexOf
[MDC Array:map]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:map
[MDC Array:some]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:some
[MDC Array:forEach]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:forEach
[Array:every]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:every
[Array:filter]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:filter
[Array:indexOf]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:indexOf
[Array:map]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:map
[Array:some]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:some
[MDC Array]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array
[MDC Array:every]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/every
[MDC Array:filter]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/filter
[MDC Array:indexOf]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/indexOf
[MDC Array:map]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/map
[MDC Array:some]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/some
[MDC Array:forEach]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/forEach
[Array:every]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/every
[Array:filter]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/filter
[Array:indexOf]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/indexOf
[Array:map]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/map
[Array:some]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/some
2 changes: 1 addition & 1 deletion Docs/Native/Event.md
Expand Up @@ -13,7 +13,7 @@ Event Method: constructor {#Event:constructor}

### Arguments:

1. event - (*event*) An HTMLEvent Object.
1. event - (*event*, required) An HTMLEvent Object.
2. win - (*window*, optional: defaults to window) The context of the event.

#### Properties:
Expand Down
6 changes: 3 additions & 3 deletions Docs/Native/Function.md
Expand Up @@ -297,6 +297,6 @@ Runs the Function with specified arguments and binding. The same as apply but re
[options]: #Function:create:options
[Element:addEvent]: /core/Element/Element.Event/#Element:addEvent
[$clear]: /core/Core/Core/#clear
[MDC Function]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Function
[MDC setInterval]: http://developer.mozilla.org/en/docs/DOM:window.setInterval
[MDC setTimeout]: http://developer.mozilla.org/en/docs/DOM:window.setTimeout
[MDC Function]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Function
[MDC setInterval]: https://developer.mozilla.org/en/DOM/window.setInterval
[MDC setTimeout]: https://developer.mozilla.org/en/DOM/window.setTimeout
2 changes: 1 addition & 1 deletion Docs/Native/Number.md
Expand Up @@ -132,4 +132,4 @@ Returns this number as another number with the passed in base. Useful because to



[MDC Number]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Number
[MDC Number]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number
12 changes: 6 additions & 6 deletions Docs/Native/String.md
Expand Up @@ -346,11 +346,11 @@ Removes undefined keywords and ignores escaped keywords.



[MDC String]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:String
[MDC Regexp:test]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:RegExp:test
[MDC Regular Expressions]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Regular_Expressions
[MDC parseInt]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Functions:parseInt
[MDC parseFloat]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Functions:parseFloat
[MDC Array]: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array
[MDC String]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String
[MDC Regexp:test]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/RegExp/test
[MDC Regular Expressions]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Regular_Expressions
[MDC parseInt]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/parseInt
[MDC parseFloat]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Functions/parseFloat
[MDC Array]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array
[String:trim]: #String:trim
[Array:rgbToHex]: /core/Native/Array/#Array:rgbToHex
1 change: 1 addition & 0 deletions Docs/Request/Request.HTML.md
Expand Up @@ -21,6 +21,7 @@ Request Specifically made for receiving HTML.

* evalScripts - (*boolean*: defaults to true) If set to true, `script` tags inside the response will be evaluated. This overrides the `false` default from Request.
* update - (*element*: defaults to null) The Element to insert the response text of the Request into upon completion of the request.
* append - (*element*: defaults to null) The Element to append the response text of the Request into upon completion of the request.

### Events:

Expand Down
2 changes: 1 addition & 1 deletion Docs/Utilities/Cookie.md
Expand Up @@ -97,7 +97,7 @@ Remove a Cookie:
Creating a Cookie and Removing it Right Away:

var myCookie = Cookie.write('username', 'Aaron', {domain: 'mootools.net'});
if (Cookie.read('username') == 'Aaron') { Cookie.dispose(myCookie); }
if (Cookie.read('username') == 'Aaron') { myCookie.dispose(); }



Expand Down
23 changes: 22 additions & 1 deletion Docs/Utilities/Selectors.md
Expand Up @@ -91,7 +91,7 @@ Some default Pseudo Selectors for [Selectors][].
- [W3C Pseudo Classes](http://www.w3.org/TR/2005/WD-css3-selectors-20051215/#pseudo-classes)


Selector: enabled {#Selector:checked}
Selector: checked {#Selector:checked}
-------------------------------------

Matches all Elements that are checked.
Expand Down Expand Up @@ -121,6 +121,7 @@ Matches all Elements that are enabled.
$$('*:enabled')

$('myElement').getElements(':enabled');


Selector: empty {#Selector:empty}
---------------------------------
Expand All @@ -135,6 +136,7 @@ Matches all elements which are empty.

$$('div:empty');


Selector: contains {#Selector:contains}
---------------------------------------

Expand All @@ -153,6 +155,22 @@ Matches all the Elements which contains the text.
$$('p:contains("find me")');


Selector: not {#Selector:not}
-------------------------------------

Returns all elements that do not match the selector.

### Usage:

':not(selector)'

### Examples:

$$('*:not(.foo)')

$('myElement').getElements(':not(a)');


Selector: nth-child {#Selector:nth-child}
-----------------------------------------

Expand Down Expand Up @@ -203,6 +221,7 @@ Last Child:

This selector respects the w3c specifications, so it has 1 as its first child, not 0. Therefore nth-child(odd) will actually select the even children, if you think in zero-based indexes.


Selector: even {#Selector:even}
-------------------------------

Expand All @@ -220,6 +239,7 @@ Matches every even child.

This selector is not part of the w3c specification, therefore its index starts at 0. This selector is highly recommended over nth-child(even), as this will return the real even children.


Selector: odd {#Selector:odd}
-----------------------------

Expand All @@ -237,6 +257,7 @@ Matches every odd child.

This selector is not part of the w3c specification, therefore its index starts at 0. This selector is highly recommended over nth-child(odd), as this will return the real odd children.


Selector: first-child {#Selector:first-child}
---------------------------------

Expand Down

0 comments on commit b5a0c82

Please sign in to comment.