mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
Fix: Legacy API error when using fnGetNodes on an empty table
This commit is contained in:
parent
c1841e6eff
commit
c0c1db422f
@ -1 +1 @@
|
||||
986ac570ba5ebda7a8dc7ee983ef927a4fccbd5d
|
||||
a6ba26cc32db737bea178fac2a23d2ea2f7923af
|
||||
|
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -5398,7 +5398,7 @@
|
||||
api.row( src ).data();
|
||||
}
|
||||
|
||||
return api.data().toArray();
|
||||
return api.data().flatten().toArray();
|
||||
};
|
||||
|
||||
|
||||
@ -5426,7 +5426,7 @@
|
||||
|
||||
return iRow !== undefined ?
|
||||
api.row( iRow ).node() :
|
||||
api.rows().nodes().toArray();
|
||||
api.rows().nodes().flatten().toArray();
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user