quote class member

the class member variable is a reserved keyword in Javascript.
This patch fixes a syntax error.
This commit is contained in:
Adam Young 2010-11-29 09:46:39 -05:00
parent 16b935169c
commit 5bfb1a004a

View File

@ -428,7 +428,7 @@ function ipa_button(spec) {
});
if (spec.click) button.click(spec.click);
if (spec.class) button.addClass(spec.class);
if (spec['class']) button.addClass(spec['class']);
if (spec.icon) button.append('<span class="ui-icon '+spec.icon+'" ></span> ');
return button;