1
0
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:
Allan Jardine 2013-08-20 15:01:10 +01:00
parent d5eb393df9
commit e1f4a8fa9e
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8401eab9328f17b363d5b693bd65caecd7a0c994
0d53fc629f28fb20a1434aa66826684eaeedaf57

View File

@ -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