changed usage to require-friendly amd style

pull/227/head
MickeyP 9 years ago
parent e5ea38de87
commit 649a0664cf

@ -20,7 +20,13 @@
* $('#example').DataTable();
*/
(function($) {
(function (factory) {
if (typeof define === "function" && define.amd) {
define(["jquery", "moment", "datatables"], factory);
} else {
factory(jQuery, moment);
}
}(function ($, moment) {
$.fn.dataTable.moment = function ( format, locale ) {
var types = $.fn.dataTable.ext.type;
@ -50,4 +56,4 @@ $.fn.dataTable.moment = function ( format, locale ) {
};
};
}(jQuery));
}));

Loading…
Cancel
Save