Closed kellyhutchins closed 9 years ago
Many of the url params I use in templates are boolean but when retrieved as url params they are strings. I think we should add some logic into the _getUrlParamValues function to handle the conversion. Something like this?
var item = urlObject.query[items[i]]; obj[items[i]] = item === "true" || (item == "false" ? false : item);
@driskull thoughts?
@kellyhutchins Makes sense to me. I had done this for the public gallery app.
Cool I'll add it in.
hey @kellyhutchins did this get put in yet?
@driskull not yet.
Many of the url params I use in templates are boolean but when retrieved as url params they are strings. I think we should add some logic into the _getUrlParamValues function to handle the conversion. Something like this?
var item = urlObject.query[items[i]]; obj[items[i]] = item === "true" || (item == "false" ? false : item);
@driskull thoughts?