Bug 879482 - Use correct function when mapping results from file pickers. r=mfinkle
authorWes Johnston <wjohnston@mozilla.com>
Tue, 18 Jun 2013 09:39:33 -0700
changeset 146980 da161284668e4590e290635e6aa6998d50cbfc04
parent 146979 3a4c1a113154fd7b76c157bbf223b34e8ce69732
child 146981 2a1e3764868afccdf0892cf4dcbebc89a968494f
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs879482
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 879482 - Use correct function when mapping results from file pickers. r=mfinkle
mobile/android/components/FilePicker.js
--- a/mobile/android/components/FilePicker.js
+++ b/mobile/android/components/FilePicker.js
@@ -230,17 +230,17 @@ FilePicker.prototype = {
       mIndex: 0,
       hasMoreElements: function() {
         return (this.mIndex < this.mFiles.length);
       },
       getNext: function() {
         if (this.mIndex >= this.mFiles.length) {
           throw Components.results.NS_ERROR_FAILURE;
         }
-        return map(this.mFiles[this.mIndex++]);
+        return mapFunction(this.mFiles[this.mIndex++]);
       }
     };
   },
 
   classID: Components.ID("{18a4e042-7c7c-424b-a583-354e68553a7f}"),
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIFilePicker, Ci.nsIObserver])
 };