mathiasbynens / jquery-details

World’s first <details>/<summary> polyfill™
https://mths.be/details
GNU General Public License v2.0
121 stars 34 forks source link

JSHint file #9

Closed nschonni closed 11 years ago

nschonni commented 11 years ago
mathiasbynens commented 11 years ago

I don’t “mix tabs and spaces” — I use tabs for indentation and spaces for presentational indentation. That way, the source code looks like I intended it to, regardless of editor settings.

nschonni commented 11 years ago

Since the var goes from line 5 to 47, I think it is seeing that as one "line" so even turning on SmartTabs still causes it to give the warning. Strict was mostly about style, but those comparisons don't need type coercion. JSHint is more about style than function, but most of the rules can be all opted out selectively using a /* jshint */ directive at the top.

nschonni commented 11 years ago

Closing since it has been 3 months and no response