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

Media plugin .ctr: make src param required as per spec

    XMLWordPrintableJSON

Details

    Description

      As per documentation src is a mandatory but in argscheck it is optional. Due to this in some unit tests 'undefined' is passed to native proxy and may cause some issues (for example I see related internal errors on Windows)

      var Media = function(src, successCallback, errorCallback, statusCallback) {
      argscheck.checkArgs('SFFF', 'Media', arguments);
      this.id = utils.createUUID();
      mediaObjects[this.id] = this;
      this.src = src;
      ...
      exec(null, this.errorCallback, "Media", "create", [this.id, this.src]);
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            sgrebnov Sergey Grebnov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: