Preserve classes when connecting to a transformed table

This preserves the classes on transformed tables, as discussed here: https://github.com/wenzhixin/bootstrap-table/issues/57#issuecomment-52070192