Re: [w3c/browser-payment-api] How will the spec address versioning / feature detection? (#33)

To be clear, what I'm proposing would end up looking like:
```javascript
if(PaymentOptions.getSupportedOptions()['requestShipping']){
  // can use 'requestShipping' in the dictionary
}
```
...as contrasted with:
```javascript
if(PaymentRequest.prototype.hasOwnProperty("shippingAddress")){
  // can use 'requestShipping' in the dictionary
}
```

So you can see how one of these has a straight line (e.g., requestShipping -> requestShipping) while the other has an inference (e.g. shippingAddress -> requestShipping)

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/33#issuecomment-227297557

Received on Monday, 20 June 2016 23:15:21 UTC