mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
moved nsNormalize from replace to jquery camelCase function
This commit is contained in:
parent
ad6279dd8a
commit
4c299a600b
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue