Closed
Bug 250815
Opened 21 years ago
Closed 20 years ago
reference to undefined property column.id in unifinder (strict js warning on Moz1.7/1.8 tree capatibility code)
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gekacheka, Assigned: mostafah)
Details
Attachments
(1 file)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
On moz1.7, with cvs cal, running with strict javascript produces warning:
reference to undefined property column.id
in several places in
unifinder.js
unifinderToDo.js
Problem is Moz1.7/Moz1.8 tree compatibility code that checks for column.id when
column is a string (in moz1.7). Safer approach is to check the type of column
is an object before accessing id property.
Instead of
(column.id || column)
use
(typeof(column)=="object" ? column.id : column)
Reproducible: Always
Steps to Reproduce:
Works on Moz1.7.1 and Moz1.8 (sunbird).
OS: Windows 2000 → All
Hardware: PC → All
Assignee | ||
Comment 3•20 years ago
|
||
Checked in. Thanks
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 4•18 years ago
|
||
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.
Description
•