Added comment for nfc method

This commit is contained in:
alexandercerutti
2018-08-28 15:36:15 +02:00
parent 7f43325751
commit cdc23ecc22

View File

@@ -399,6 +399,14 @@ class Pass {
return this; return this;
} }
/**
* Sets nfc fields in properties
*
* @method nfc
* @params {Array<Object>} data - the data to be pushed in the pass
* @returns {this}
*/
nfc(...data) { nfc(...data) {
if (data.length === 1 && data[0] instanceof Array) { if (data.length === 1 && data[0] instanceof Array) {
data = data[0]; data = data[0];