We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ba823 commit fa4539cCopy full SHA for fa4539c
05-object-creation.md
@@ -137,6 +137,7 @@ new SandBox('dependencies', 'here', function(box){
137
* passed in callback function is you isolated environment
138
* you initiate multiple Sandbox object and even nest them
139
* you can name the constructor appropriately (instead of Sandbox)
140
+* YUI (now dead) used this
141
142
## implementing the sandbox pattern
143
@@ -162,3 +163,11 @@ new SandBox('dependencies', 'here', function(box){
162
163
* no real way to do it in ES5
164
* just naming convention: all caps, and also worth making sure they're static
165
* ```const``` keyword coming in ES6
166
+
167
+## chaining
168
169
+* methods (that may not have a meaningful return value) returning this
170
+* allows calling methods in a chain in a single expression
171
+* pros: save some typing, more concise, small and focused methods
172
+* cons: may get a bit harder to debug - lot happening on a single line
173
+* JQuery uses it
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments