Browse Source

fix #1953, use for-of instead

zhixin 7 years ago
parent
commit
b9be43a3df
1 changed files with 1 additions and 1 deletions
  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]]
         }