DamianEdwards/Unobtrusive-jQuery-UI — Issue #2: unobtrusive options only allow simple types
Author: omegaluz
Created: 2011-12-03 16:23:20+00:00
State: open

Because there is no evaluation of the options specified in the data-ui-{function}-{option} attributes, only simple types are rendered correctly.

For example, supposed there is an option disabled, and the type is Boolean. 'false' would evaluate correctly. But, if your option was of any type other than String, Boolean, or Number, the correct options will not be set.

I have a prototype of getting an inline anonymous function to evaluate, but going down this path opens up the door for adding support for Array, Date, Selector, jQuery, Element, and anything else that might evaluate to a typeof Object.