Added in both of Franck's suggested fixes jQuery.class and "foo" + "bar".split(",").