updated 细节调整

This commit is contained in:
PASSER-BY
2022-11-12 00:48:22 +08:00
parent 1fd73283f7
commit 9c5a79c94b
4 changed files with 7 additions and 10 deletions

View File

@@ -209,9 +209,7 @@ var prefix = {
for(var key in prefixMap){
for(var selector in prefixMap[key]){
var ids = selector2id(selector);
if(typeof prefix[key]=='undefined'){
prefix[key] = {};
}
prefix[key] = prefix[key]||{};
ids.forEach(function(id){
prefix[key][id] = prefixMap[key][selector];
});