| OLD | NEW |
| 1 this.foo = this.foo + 1; // OK - outside of function. | 1 this.foo = this.foo + 1; // OK - outside of function. |
| 2 | 2 |
| 3 function f() { | 3 function f() { |
| 4 this.foo = this.foo + 1; // OK - global |this|. | 4 this.foo = this.foo + 1; // OK - global |this|. |
| 5 } | 5 } |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @constructor | 8 * @constructor |
| 9 */ | 9 */ |
| 10 function TypeOne() { | 10 function TypeOne() { |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 * @this {Object} | 275 * @this {Object} |
| 276 */ | 276 */ |
| 277 function callbackNotReferencingThisAnnotated() | 277 function callbackNotReferencingThisAnnotated() |
| 278 { | 278 { |
| 279 } | 279 } |
| 280 this.memberTwo(callbackNotReferencingThisAnnotated); // OK - Has @this a
nnotation, but does not reference |this|. | 280 this.memberTwo(callbackNotReferencingThisAnnotated); // OK - Has @this a
nnotation, but does not reference |this|. |
| 281 }, | 281 }, |
| 282 | 282 |
| 283 memberTwo: function(arg) {} | 283 memberTwo: function(arg) {} |
| 284 } | 284 } |
| OLD | NEW |