moved nsNormalize from replace to jquery camelCase function

This commit is contained in:
John Bender 2011-05-20 09:20:15 -07:00
parent ad6279dd8a
commit 4c299a600b

View file

@ -120,11 +120,7 @@
nsNormalize: function(prop){
if(!prop) return;
// NOTE the spec specifies that attributes will be converted to lower case
// ascii so the regex can remain simple
return ($.mobile.ns + prop).replace(this.normalizeRegex, function(s, capture){
return capture.toUpperCase();
});
return $.camelCase($.mobile.ns + prop);
}
});