Re: [mediacapture-main] What does it mean that the argument to applyConstraints() is optional

> I think, after ruminating, that an empty parameter means "clear current constraints". I don't think it's a good idea to encode function behaviour in the semantics of the arguments, and instead we should have a clearConstraints() or similar method.

I agree with what you're saying here, but even if we did add a `clearConstraints()` function, `applyContraints()` (with or without an empty dict arg) would still be a duplicate of that behaviour.

-- 
GitHub Notification of comment by adam-be
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/438#issuecomment-290379477 using your GitHub account

Received on Thursday, 30 March 2017 11:10:00 UTC