From 4f476215acd55035280668c26146ae46528bf55a Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 19 Oct 2013 07:54:49 -0700 Subject: [PATCH] Support minifier license comment convetion. Many JS minifiers use the convention that comments starting with '/*!' are preserverd as license comments. To help build tools do this easily with DataTables, it should use this convention. This ensures the license comment is preserved when using these tools. From https://github.com/yui/yuicompressor/blob/master/README.md C-style comments starting with /*! are preserved. This is useful with comments containing copyright/license information. From https://github.com/yui/yuglify We need to support the /*! license comment blocks when minifying, so we added a preprocessor to the code to pull them from the source, then place them back when the minification is complete. --- media/src/DataTables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/src/DataTables.js b/media/src/DataTables.js index f5de7dd7..f0061134 100644 --- a/media/src/DataTables.js +++ b/media/src/DataTables.js @@ -1,4 +1,4 @@ -/** +/*! * @summary DataTables * @description Paginate, search and sort HTML tables * @version 1.10.0-dev