Re: [mediacapture-main] getSupportedConstraints as list of values

Too bad the indexOf() != -1 test is so ugly. If we had an "in" keyword
 that could check if an element was in a list then I think this 
approach would be quite OK. Because all we want to know is if the 
browser knows a particular name (which happens to represent a 
constraint).

-- 
GitHub Notif of comment by adam-be
See 
https://github.com/w3c/mediacapture-main/pull/144#issuecomment-82879958

Received on Wednesday, 18 March 2015 10:23:04 UTC