[web-nfc] Remove NDEFPushOptions ignoreRead (#424)

beaufortfrancois has just created a new issue for https://github.com/w3c/web-nfc:

== Remove NDEFPushOptions ignoreRead ==
It seems like the NDEFPushOptions `ignoreRead` could easily be replaced with NOT listening to the `onreading` event as you can see below.

If that's the case, shall we simply remove it?

```js
const reader = new NDEFReader();
reader.scan();
reader.onreading = event => { /* Won't be called because ignoreRead is true */ });

const writer = new NDEFWriter();
await writer.push('hello world', { ignoreRead: true });
```
and its equivalent
```js
const reader = new NDEFReader();
reader.scan();

const writer = new NDEFWriter();
await writer.push('hello world');
reader.onreading = event => { /* Will be called after write happened if needed */ });
```

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/424 using your GitHub account

Received on Tuesday, 29 October 2019 10:56:40 UTC