新增 opencv懒加载

This commit is contained in:
hyb1996
2018-11-02 00:48:13 +08:00
parent d8d02a1137
commit 248d698708
9 changed files with 99 additions and 65 deletions

View File

@@ -94,8 +94,11 @@ module.exports = function (runtime, global) {
}
ui.post = function (action, delay) {
delay = delay || 0;
runtime.getUiHandler().postDelayed(wrapUiAction(action), delay);
if(delay == undefined){
runtime.getUiHandler().post(wrapUiAction(action));
}else{
runtime.getUiHandler().postDelayed(wrapUiAction(action), delay);
}
}
ui.statusBarColor = function (color) {