#45810 closed enhancement (fixed)
JavaScript type comparison should not lead to a type coercion
Reported by: | subrataemfluence | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | 5.0.2 |
Component: | Administration | Keywords: | has-patch 2nd-opinion |
Focuses: | javascript, coding-standards | Cc: |
Description
Although typeof jQuery!='undefined'
would not lead to any type conversion I think it is always better to be on a safer side by writing it as typeof jQuey !== 'undefined'
.
I hope this will make the type comparison more concrete.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
In 48083: