From dfd2762530bdbaa00b55e7582b0ced2f006dfeb7 Mon Sep 17 00:00:00 2001 From: "dmose%mozilla.org" Date: Wed, 21 Dec 2005 20:20:18 +0000 Subject: [PATCH] Gave function names to most anonymous functions so that this code is easier to profile and debug in Venkman (no bug), rs=jminta@gmail.com git-svn-id: svn://10.0.0.236/trunk@186385 18797224-902f-48f8-a5cc-f745e15eee43 --- .../base/content/calendar-multiday-view.xml | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) 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 @@