You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wanted-recipes.textile
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,10 @@ In the notes below, "JS" means the recipe is just a simple passthrough to an exi
10
10
11
11
h2. Syntax
12
12
13
-
* list comp gotcha: y = x for x in [1..3]; y # => 3; but y = (x for x in [1..3]); y # => [ 1, 2, 3 ]
14
13
* Ensuring variables are closed over # with "do"
15
14
16
15
h2. Objects
17
-
18
-
* cloning an object (see http://stackoverflow.com/questions/122102/what-is-the-most-efficient-way-to-clone-a-javascript-object ) -- snag both the generic JS version, port to CS, also snag the jQuery version and port to CS+jQ.
0 commit comments