From e1f4a8fa9ed41208dc337f0a8d60cbd204443ba0 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 20 Aug 2013 15:01:10 +0100 Subject: [PATCH] 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. --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index f1015efb..3cb8b1cf 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -8401eab9328f17b363d5b693bd65caecd7a0c994 +0d53fc629f28fb20a1434aa66826684eaeedaf57 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 6f82ade4..a3889173 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -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