Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29356322: Issue 4501 - Fix treatment of element hiding filters with filter key 0 (Closed)

Created:
Oct. 7, 2016, 10:11 a.m. by Wladimir Palant
Modified:
Oct. 7, 2016, 10:43 a.m.
Reviewers:
kzar
Base URL:
https://hg.adblockplus.org/adblockpluscore
Visibility:
Public.

Description

I wonder whether I should again insist on banning the sloppy if (foo) coding style - treating 0, empty string and undefined the same is a footgun.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -134 lines) Patch
M lib/elemHide.js View 1 chunk +1 line, -1 line 0 comments Download
M test/elemHide.js View 1 chunk +143 lines, -133 lines 0 comments Download

Messages

Total messages: 2
Wladimir Palant
Oct. 7, 2016, 10:11 a.m. (2016-10-07 10:11:52 UTC) #1
kzar
Oct. 7, 2016, 10:18 a.m. (2016-10-07 10:18:33 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld