gfranko/jquery.selectBoxIt.js — pull request #105 by localpcguy (2013-02-06 01:50:11+00:00)
Title: BUG: JS error if user sets theme to empty string

or something other than one of the library choices

The attached code resolves the issue by creating an object
if it is undefined in the _addClass function.

selectBoxIt.js defaults to "bootstrap" if you don't set a
theme, and if you leave the theme option empty or try to
set it to "none" it crashes when trying to go through
_addClasses. Looks like there is no default object that
_addClasses should consume if a user doesn't use one of
the framework theme option.

I'll leave the question about whether it should be
defaulting to no theme rather than "bootstrap" to you,
but there needs to be a fallback "obj" object
created if _addClass() is called without an obj as in the
else case when setting the theme.