瀏覽代碼

initDbo null case

tags/v0.1.2
Robin Thoni 7 年之前
父節點
當前提交
853031ff44
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/Business/lu-webapi-crud-business.js

+ 3
- 0
src/Business/lu-webapi-crud-business.js 查看文件

@@ -35,6 +35,9 @@
35 35
 
36 36
                 Business.initDbo = function(dbo)
37 37
                 {
38
+                    if (dbo == null) {
39
+                        return null;
40
+                    }
38 41
                     return Business.extendDeep({}, Business.defaultDbo, dbo);
39 42
                 };
40 43
 

Loading…
取消
儲存