From 091f41e42254455144de1c8fa30397322bb5a3e4 Mon Sep 17 00:00:00 2001 From: "mostafah%oeone.com" Date: Wed, 9 Jun 2004 14:57:59 +0000 Subject: [PATCH] Added 1.7 backward compatibility for onResponse --- calendar/resources/content/calendarManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/resources/content/calendarManager.js b/calendar/resources/content/calendarManager.js index 3a58c4567921..50c01fcf8705 100644 --- a/calendar/resources/content/calendarManager.js +++ b/calendar/resources/content/calendarManager.js @@ -667,7 +667,8 @@ calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalen window.setCursor( "default" ); var retval = false; - result = String.fromCharCode.apply(this, result); + if( typeof( result ) != "string" ) //for 1.7 compatibility + result = String.fromCharCode.apply(this, result); var ch = Channel.QueryInterface(Components.interfaces.nsIHttpChannel); if (!ch.requestSucceeded) {