Browse Source

Fix #269: array as row bug.

zhixin 11 years ago
parent
commit
8fd2fa3e5a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

@@ -914,8 +914,8 @@
 
             html.push('<tr',
                 sprintf(' %s', htmlAttributes.join(' ')),
-                sprintf(' id="%s"', item._id),
-                sprintf(' class="%s"', style.classes || item._class),
+                sprintf(' id="%s"', $.isArray(item) ? undefined : item._id),
+                sprintf(' class="%s"', style.classes || $.isArray(item) ? undefined : item._class),
                 sprintf(' data-index="%s"', i),
                 '>'
             );