From 67924f7b12d7f1ca7b50e12a810764b3bdd381e2 Mon Sep 17 00:00:00 2001 From: "bryner%uiuc.edu" Date: Tue, 17 Apr 2001 07:19:52 +0000 Subject: [PATCH] Fixing js strict warnings. r=jag, sr=ben. --- xpfe/components/filepicker/src/nsFilePicker.js | 5 ++++- xpfe/components/filepicker/src/nsFilePicker.js.in | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/xpfe/components/filepicker/src/nsFilePicker.js b/xpfe/components/filepicker/src/nsFilePicker.js index 9eae80b83056..e4dd96b2eb2e 100644 --- a/xpfe/components/filepicker/src/nsFilePicker.js +++ b/xpfe/components/filepicker/src/nsFilePicker.js @@ -93,6 +93,7 @@ nsFilePicker.prototype = { url.file = this.mFile; return url; } + return null; }, /* attribute wstring defaultString; */ @@ -182,6 +183,8 @@ nsFilePicker.prototype = { lastDirectory = o.retvals.directory; return o.retvals.buttonStatus; } catch(ex) { dump("unable to open file picker\n" + ex + "\n"); } + + return null; } } @@ -222,7 +225,7 @@ function(compMgr) } /* factory object */ -filePickerFactory = new Object(); +var filePickerFactory = new Object(); filePickerFactory.createInstance = function (outer, iid) { diff --git a/xpfe/components/filepicker/src/nsFilePicker.js.in b/xpfe/components/filepicker/src/nsFilePicker.js.in index 9eae80b83056..e4dd96b2eb2e 100644 --- a/xpfe/components/filepicker/src/nsFilePicker.js.in +++ b/xpfe/components/filepicker/src/nsFilePicker.js.in @@ -93,6 +93,7 @@ nsFilePicker.prototype = { url.file = this.mFile; return url; } + return null; }, /* attribute wstring defaultString; */ @@ -182,6 +183,8 @@ nsFilePicker.prototype = { lastDirectory = o.retvals.directory; return o.retvals.buttonStatus; } catch(ex) { dump("unable to open file picker\n" + ex + "\n"); } + + return null; } } @@ -222,7 +225,7 @@ function(compMgr) } /* factory object */ -filePickerFactory = new Object(); +var filePickerFactory = new Object(); filePickerFactory.createInstance = function (outer, iid) {