anutron/behavior — Issue #10: Behavior API _getOptions bug with IE
Author: epatrick
Created: 2011-10-14 20:09:16+00:00
State: open

The BehaviorAPI._getOptions method uses:

if (options && options[0] != '{') options = '{' + options + '}';

In IE 8/9, 'myString'[0] returns undefined, instead of the expected 'm'.

I suggest not using IE of course, but for those who must, changing the subject line to:

if (options && options.substring(0,1) != '{') options = '{' + options + '}';