-
-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Allow a
window
to be passed in for CommonJS factory which g…
…ives DataTables the ability to be used in a headless environment (server-side rendering for example) - Factory builder redesigned to pass in window and document to the factory method, mandating a small update to the AMD and Browser loaders - Main change in is the CommonJS loader which can now optionally have a window object passed in - if it is not passed in `window` will be used (if this is the case in a CommonJS environment without a root object being passed in an error will occur). - DataTables caches a reference to the jQuery instance so the plug-ins can easily reference jQuery while retaining their current return of the module they define. This basically means that DataTables core will include jQuery for the plug-ins. - This does increase the core library size by ~160 bytes which is rather frustrating, but I think this is the correct way to go about it - With thanks to Evan Carroll for input on this: DataTables/Plugins#199
- Loading branch information
Showing
4 changed files
with
68 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters