Merge pull request #1169 from mek1986/main

删除分号,同一个文件里,编码风格建议统一
pull/1171/head
贤心 2022-11-20 16:12:58 +08:00 committed by GitHub
commit 74023c658b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 14 deletions

View File

@ -148,7 +148,7 @@
(function poll() {
if(++timeout > config.timeout * 1000 / 4){
return error(item + ' is not a valid module', 'error');
};
}
config.status[item] ? onCallback() : setTimeout(poll, 4);
}());
}
@ -221,7 +221,7 @@
(function poll() {
if(++timeout > config.timeout * 1000 / 4){
return error(item + ' is not a valid module', 'error');
};
}
(typeof config.modules[item] === 'string' && config.status[item])
? onCallback()
: setTimeout(poll, 4);
@ -285,7 +285,7 @@
//如果轮询超过指定秒数,则视为请求文件失败或 css 文件不符合规范
if(++timeout > config.timeout * 1000 / delay){
return error(href + ' timeout');
};
}
//css 加载就绪
if(parseInt(that.getStyle(getLinkElem, 'width')) === 1989){
@ -671,7 +671,7 @@
} else { //数字 vs 数字
return v1 - v2;
}
};
}
/**
* 字典序排序

View File

@ -87,16 +87,8 @@ layui.define('jquery',function(exports){
+ (i>Math.floor(options.value)?ICON_RATE:ICON_RATE_SOLID)
+ '" '+ style +'></i></li>';
if(options.half){
if(parseInt(options.value) !== options.value){
if(i == Math.ceil(options.value)){
temp = temp + '<li><i class="layui-icon layui-icon-rate-half" '+ style +'></i></li>';
}else{
temp = temp + item
}
}else{
temp = temp + item
}
if(options.half&&parseInt(options.value) !== options.value&&i == Math.ceil(options.value)){
temp = temp + '<li><i class="layui-icon layui-icon-rate-half" '+ style +'></i></li>';
}else{
temp = temp +item;
}