Both good suggestions on trim & eval. I thought about json but thought
straight js looked cleaner. I will think about how to handle injection
prevention when I get a chance.



On Sun, Jul 7, 2013 at 1:13 PM, Nathanael Silverman <
notifications@github.com> wrote:

> In jquery.ui.markup.js:
>
> > @@ -29,6 +29,8 @@ $( document ).ready(function() {
> >  					value = value.toLowerCase() === "true";
> >  				} else if ( !isNaN( value ) ) {
> >  					value = +value;	
> > +				} else if ( value.charAt(0) === "{" ) {
>
> Let's trim the value in case extra-spaces are thrown in.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ngsilverman/jquery-ui-markup/pull/1/files#r5055344>
> .
>