Closed Bug 346190 Opened 18 years ago Closed 18 years ago

updateStyleSheetForObject needs refactoring

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jminta, Assigned: jminta)

Details

Attachments

(1 file)

spinoff from bug 344452.  This function is really hard to read.
Attached patch as requested — — Splinter Review
Reorganized to group all of the calendar/category distinction bits and to remove some superfluous function declarations to make this easier to read.  This is critical due to the extra bug in calendarUtils.js
Assignee: nobody → jminta
Status: NEW → ASSIGNED
Attachment #231021 - Flags: first-review?(dmose)
Comment on attachment 231021 [details] [diff] [review]
as requested

+        ruleFunc = function(aRule) {
Anonymous functions are bad! x2.  Let's also call it ruleUpdaterFunc.

+            if (color) {
+                rule.style.border = color + " solid 2px";
+            }
you want aRule.

r=dmose with those.
Attachment #231021 - Flags: first-review?(dmose) → first-review+
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: