From f54ac1c816a0c8b42d43f599cb45abaa1d14ec14 Mon Sep 17 00:00:00 2001 From: Xue Fuqiao Date: Sun, 18 Jan 2015 21:49:57 +0800 Subject: [PATCH 001/110] javascript-101/loops: remove extraneous characters Closes gh-620 --- page/javascript-101/loops.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/page/javascript-101/loops.md b/page/javascript-101/loops.md index 39adc5c4..eafa7b2f 100644 --- a/page/javascript-101/loops.md +++ b/page/javascript-101/loops.md @@ -48,14 +48,14 @@ for (var i = 0, limit = 100; i < limit; i++) { ## The `for...in` loop -+A `for...in` loop iterates over the properties of an object. For each property, statements can be executed. -+ -+``` -+for ( prop in obj ) { +A `for...in` loop iterates over the properties of an object. For each property, statements can be executed. + +``` +for ( prop in obj ) { // statements here will be executed for every key in the object console.log( prop + ': ' + obj[ prop ] ); } -`` +``` ## The `while` loop From b88db453c73ef0cedb936c5967de888111ec7a0d Mon Sep 17 00:00:00 2001 From: Xue Fuqiao Date: Sun, 18 Jan 2015 15:38:39 +0800 Subject: [PATCH 002/110] Javascript-101/syntax-basics: update link to JSDoc site Closes gh-618 --- page/javascript-101/syntax-basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page/javascript-101/syntax-basics.md b/page/javascript-101/syntax-basics.md index 7768c839..857b0090 100644 --- a/page/javascript-101/syntax-basics.md +++ b/page/javascript-101/syntax-basics.md @@ -7,7 +7,7 @@ ### Comments -JavaScript has support for single- and multi-line comments. Comments are ignored by the JavaScript engine and therefore have no side-effects on the outcome of the program. Use comments to document the code for other developers. Libraries like [JSDoc](https://code.google.com/p/jsdoc-toolkit/ "JSDoc Toolkit") are available to help generate project documentation pages based on commenting conventions. +JavaScript has support for single- and multi-line comments. Comments are ignored by the JavaScript engine and therefore have no side-effects on the outcome of the program. Use comments to document the code for other developers. Libraries like [JSDoc](http://usejsdoc.org/ "JSDoc") are available to help generate project documentation pages based on commenting conventions. ``` // Single- and multi-line comments. From a1117d3dcfabcd99c7bac9f669d178857b90a40d Mon Sep 17 00:00:00 2001 From: Arthur Verschaeve Date: Thu, 25 Dec 2014 23:01:41 +0100 Subject: [PATCH 003/110] jquery-core/selecting-elements: replace info by links to api docs Fixes gh-338 Closes gh-591 Ref gh-180 --- page/using-jquery-core/selecting-elements.md | 119 ++----------------- 1 file changed, 12 insertions(+), 107 deletions(-) diff --git a/page/using-jquery-core/selecting-elements.md b/page/using-jquery-core/selecting-elements.md index 7a951249..6d608d07 100644 --- a/page/using-jquery-core/selecting-elements.md +++ b/page/using-jquery-core/selecting-elements.md @@ -116,26 +116,6 @@ $( "ul li" ).eq( 5 ); // the sixth jQuery offers several pseudo-selectors that help find elements in forms. These are especially helpful because it can be difficult to distinguish between form elements based on their state or type using standard CSS selectors. -#### :button - -Using the `:button` pseudo-selector targets any `