forgot to update this file for bug 286455.

This commit is contained in:
mvl%exedo.nl 2005-03-22 22:37:54 +00:00
Родитель 5003885b69
Коммит acbde12a02
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -155,8 +155,8 @@ calCompositeCalendar.prototype = {
mCompositeObservers: Array(),
addObserver: function (aObserver, aItemFilter) {
const calICompositeObserver = Components.interfaces.calICompositeObserver;
var compobs = aObserver.QueryInterface (calICompositeObserver);
if (compobs) {
if (aObserver instanceof calICompositeObserver) {
var compobs = aObserver.QueryInterface (calICompositeObserver);
for (var i = 0; i < this.mCompositeObservers.length; i++) {
if (this.mCompositeObservers[i] == aObserver)
return;
@ -165,7 +165,7 @@ calCompositeCalendar.prototype = {
}
for (cal in this.mCalendars) {
cal.addObserver(aObserver, aItemFilter);
this.mCalendars[cal].addObserver(aObserver, aItemFilter);
}
},
@ -183,7 +183,7 @@ calCompositeCalendar.prototype = {
}
for (cal in this.mCalendars) {
cal.removeObserver(aObserver);
this.mCalendars[cal].removeObserver(aObserver);
}
},