You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2015/02/04 14:49:35 UTC
[jira] [Created] (CB-8425) Media plugin .ctr: improve check for
required params as per spec
Sergey Grebnov created CB-8425:
----------------------------------
Summary: Media plugin .ctr: improve check for required params as per spec
Key: CB-8425
URL: https://issues.apache.org/jira/browse/CB-8425
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Media
Reporter: Sergey Grebnov
Assignee: Sergey Grebnov
As per documentation src and successCallback must be mandatory but argscheck is incorrect.
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]);
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org