From 4c299a600b0e38fecd90b422e44897ad5727a87f Mon Sep 17 00:00:00 2001 From: John Bender Date: Fri, 20 May 2011 09:20:15 -0700 Subject: [PATCH] moved nsNormalize from replace to jquery camelCase function --- js/jquery.mobile.core.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/jquery.mobile.core.js b/js/jquery.mobile.core.js index fb7f2b10..c9d9b462 100644 --- a/js/jquery.mobile.core.js +++ b/js/jquery.mobile.core.js @@ -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); } });