reference to undefined property eventA.title, eventB.title (strict javascript warning)

RESOLVED FIXED

Status

Calendar
Sunbird Only
--
trivial
RESOLVED FIXED
14 years ago
12 years ago

People

(Reporter: gekacheka, Assigned: Mostafa Hosseini)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616

Warning reference to undefined property eventA.title
calendarEvent.js   line 580

Warning reference to undefined property eventB.title
calendarEvent.js   line 580

Warning reference to undefined property eventA.title
calendarEvent.js   line 581

Warning reference to undefined property eventB.title
calendarEvent.js   line 581

Reproducible: Always
Steps to Reproduce:
1.  Create two events with the same times and same title
2.  View them in week view
3.

Actual Results:  
strict javascript warnings above

Expected Results:  
no warnings
(Reporter)

Comment 1

14 years ago
Created attachment 151311 [details] [diff] [review]
calendarEvent.js patch:  comparison uses "" for title if none

Warnings are with (about:config) javascript.options.strict preference set to
true.

Substitutes "" for title if event does not have title property, or title is
null.
(Assignee)

Comment 2

14 years ago
Checked in.
Thanks
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.