diff --git a/mozilla/calendar/base/content/calendar-multiday-view.xml b/mozilla/calendar/base/content/calendar-multiday-view.xml index 36b686150be..23c2c7a9a25 100644 --- a/mozilla/calendar/base/content/calendar-multiday-view.xml +++ b/mozilla/calendar/base/content/calendar-multiday-view.xml @@ -719,7 +719,7 @@ // array indicating one vertical line of events. If an event can't be placed // in the first line, it should be placed in the next, and so on. - this.mEvents.sort(function (a,b) { + this.mEvents.sort(function eventComparator(a,b) { var comp = a.startMinute - b.startMinute; if (comp != 0) return comp; return b.endMinute - a.endMinute; @@ -1223,8 +1223,9 @@ if (orient == "vertical") otherorient = "horizontal"; var self = this; - this.eventNameInput.onblur = function() { self.stopEditing(true); }; - this.eventNameInput.onkeypress = function(event) { + this.eventNameInput.onblur = + function onBlur() { self.stopEditing(true); }; + this.eventNameInput.onkeypress = function onKeyPress(event) { // save on enter if (event.keyCode == 13) self.stopEditing(true); @@ -1480,7 +1481,7 @@ null @@ -1542,7 +1543,7 @@