Re: [web-nfc] Consider removing .nfc namespace

Note that in the example above NFC is the same thing as NFCAdapter 
used to be. If there are multiple NFC adapters, implementations MAY 
choose one of them based on settings/heuristics, or pop up a dialog 
for choosing one of the adapters.

Implementations will need to do things with this multiplicity in mind.
 I think the spec should include a note saying that the NFC object 
should be a singleton per physical NFC adapter and script execution 
context. Subsequent calls on requestNFC() would return the same object
 if it was requested before, or otherwise construct it again. 
This solves the problem of dangling watches for bad client code.

-- 
GitHub Notif of comment by zolkis
See https://github.com/w3c/web-nfc/issues/67#issuecomment-150546540

Received on Friday, 23 October 2015 11:18:28 UTC