mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Use named module for AMD include
Based on DataTables/DataTables/issues/214 this commit uses the optional id parameter for the AMD define function to give DataTables a 'name' for easy referencing.
This commit is contained in:
parent
d5eb393df9
commit
e1f4a8fa9e
@ -1 +1 @@
|
||||
8401eab9328f17b363d5b693bd65caecd7a0c994
|
||||
0d53fc629f28fb20a1434aa66826684eaeedaf57
|
||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -31,7 +31,7 @@
|
||||
// Define as an AMD module if possible
|
||||
if ( typeof define === 'function' && define.amd )
|
||||
{
|
||||
define( ['jquery'], factory );
|
||||
define( 'datatables', ['jquery'], factory );
|
||||
}
|
||||
/* Define using browser globals otherwise
|
||||
* Prevent multiple instantiations if the script is loaded twice
|
||||
|
Loading…
x
Reference in New Issue
Block a user