On May 18, 2014, at 1:21 PM, Justin Uberti <juberti@google.com> wrote: > I think 'ideal' will make this less inscrutable, e.g. > > videoCfg = { > require: ["width"], > width: { min: 640, ideal: 1920 }, > }; > > which to me reads even more cleanly that the mandatory/optional syntax. > yah, that is even clearer - but the require things is still confusing. What about videoCfg = [ { constrain: ”width”, min: 640, ideal: 1920 }, ];Received on Sunday, 18 May 2014 18:31:42 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:58 UTC