3019Re: [jslint] `this` in anonymous function without strict violation?
- Sep 21, 2012On Fri, Sep 21, 2012 at 12:05 AM, Doc Emmett Splendid
> Sorry, that was a typo. I meant to say "there are other things youTo my knowledge, `function f` is just a shortcut for `var f = function`.
> cannot do with the function *statement*".
I am unaware of any difference between both.
> While neither form could be used in place, he decided that theThat's how I understand the rationale as well. So, the code in question
> expression form was more likely to indicate the programmer intends to
> call it with a context.
is not actually a strict mode violation.
- << Previous post in topic Next post in topic >>