Closed Bug 1119831 Opened 9 years ago Closed 9 years ago

Typos in apps/communications/dialer/js/call_log_db.js

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S4 (23jan)

People

(Reporter: max, Assigned: gsvelto)

Details

(Whiteboard: [planned-sprint c=1])

Attachments

(2 files)

There are three instances (https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/call_log_db.js#L944, https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/call_log_db.js#L1077, https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/call_log_db.js#L1158) of this snippet of code:

    if (!callback || !callback instanceof Function) {

Note that "!" binds more tightly than "instanceof", so this will check whether a Boolean is instanceof Function, which always yields "false".
Confirming, thanks for reporting this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: [planned-sprint c=1]
Target Milestone: --- → 2.2 S4 (23jan)
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Attachment #8548943 - Flags: review?(drs.bugzilla) → review+
Green try run: https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=b5a8fb1c79f3

Pushed to gaia/master 9db430f16a6517cc6d0235c04481d64c20c81bf5

https://github.com/mozilla-b2g/gaia/commit/9db430f16a6517cc6d0235c04481d64c20c81bf5
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: