Less dogmatic about instance methods returning this.

This commit is contained in:
Spike Brehm
2012-11-14 11:13:57 -08:00
parent bde14117a4
commit 4ee33f29cf

View File

@@ -1054,7 +1054,7 @@
};
```
- Constructor methods should try to return `this`. This helps with method chaining which is often useful.
- Methods can return `this` to help with method chaining.
```javascript
// bad