浏览代码

fix #1953, use for-of instead

zhixin 7 年之前
父节点
当前提交
b9be43a3df
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -242,7 +242,7 @@
       }
 
       const props = field.split('.')
-      for (const p in props) {
+      for (const p of props) {
         if (props.hasOwnProperty(p)) {
           value = value && value[props[p]]
         }