Skip to content

Commit 55084d6

Browse files
committed
Use hasOwnProperty in d3.time.format.
Again, impossible to test for, but probably worth doing.
1 parent 95f6137 commit 55084d6

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

d3.v2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8642,7 +8642,7 @@ var d3_time_parsers = {
86428642

86438643
// Note: weekday is validated, but does not set the date.
86448644
function d3_time_parseWeekdayAbbrev(date, string, i) {
8645-
return string.substring(i, i += 3).toLowerCase() in d3_time_weekdayAbbrevLookup ? i : -1;
8645+
return d3_time_weekdayAbbrevLookup.hasOwnProperty(string.substring(i, i += 3).toLowerCase()) ? i : -1;
86468646
}
86478647

86488648
var d3_time_weekdayAbbrevLookup = {

0 commit comments

Comments
 (0)