From 49ad92b158cfa34aca5467d23e5a9530cf20dcc9 Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Fri, 29 Mar 2013 01:10:57 +0100 Subject: [PATCH] Bug 854102 - Fix JS syntax errors that broke the builtin file picker. r=mounir --- toolkit/components/filepicker/nsFilePicker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/components/filepicker/nsFilePicker.js b/toolkit/components/filepicker/nsFilePicker.js index 53c01a721390..6d9cb040d0fb 100644 --- a/toolkit/components/filepicker/nsFilePicker.js +++ b/toolkit/components/filepicker/nsFilePicker.js @@ -106,7 +106,7 @@ nsFilePicker.prototype = { } if (!this.mDOMFilesEnumerator) { - this.mDOMFilesEnumerator { + this.mDOMFilesEnumerator = { QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsISimpleEnumerator]), mFiles: [], @@ -124,7 +124,7 @@ nsFilePicker.prototype = { } }; - for (var i = 0, i < this.mFilesEnumerator.mFiles.length; ++i) { + for (var i = 0; i < this.mFilesEnumerator.mFiles.length; ++i) { var file = this.mParentWindow.wrapDOMFile( this.mFilesEnumerator.mFiles[i]); this.mDOMFilesEnumerator.mFiles.push(file);