This website requires JavaScript.
Explore
Help
Register
Sign In
rooty
/
DataTables
Watch
1
Star
0
Fork
0
You've already forked DataTables
mirror of
https://github.com/DataTables/DataTables.git
synced
2025-02-01 00:52:11 +01:00
Code
Issues
Releases
Activity
DataTables
/
.datatables-commit-sync
2 lines
41 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix: Compatibility with jQuery 2's `isPlainObject`. API instances were returning as plain objects - This appears to be caused by setting the prototype chain as an object directly. For example: var test = function () {}; test.prototype = {}; $.isPlainObject( new test() ); will return `true` with jQuery 2.1.4 (and `false` for 1.11.3). If an item is added to the prototype object then it will return `false`, although for some reason that wasn't the case with DataTables' API prototype. More investigation required, but for full compatiblity with exisiting jQuery releases, the correct thing to do here is to build on the exisiting prototype, which we can do with `$.extend`.
2015-08-19 12:25:28 +01:00
2b8674aa2395b7be7f923e044fdb062e93a8af4e
Reference in New Issue
Copy Permalink