Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-3286

FileReader docs incorrect (for failure callbacks)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • cordova-plugin-file
    • None

    Description

      See: http://docs.cordova.io/en/2.6.0/cordova_file_file.md.html#FileReader

      Notice there are two Quick Examples with this code, which will throw an exception:

      var fail = function(evt) {
          console.log(error.code);
      };
      

      Expected:

      var fail = function(evt) {
          console.log(evt.target); // evt.target is the FileReader object
      };
      

      Actual:

      var fail = function(evt) {
          console.log(error.code);
      };
      

      Attachments

        Issue Links

          Activity

            People

              mwbrooks Michael William Brooks
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: