Show More
Commit Description:
utf8mb4
Commit Description:
utf8mb4
References:
File last commit:
Show/Diff file:
Action:
node_modules/datatables.net-buttons-dt/js/buttons.dataTables.js
| 37 lines
| 834 B
| application/javascript
| JavascriptLexer
|
r789 | /*! DataTables styling wrapper for Buttons | ||
* ©2018 SpryMedia Ltd - datatables.net/license | |||
*/ | |||
(function( factory ){ | |||
if ( typeof define === 'function' && define.amd ) { | |||
// AMD | |||
define( ['jquery', 'datatables.net-dt', 'datatables.net-buttons'], function ( $ ) { | |||
return factory( $, window, document ); | |||
} ); | |||
} | |||
else if ( typeof exports === 'object' ) { | |||
// CommonJS | |||
module.exports = function (root, $) { | |||
if ( ! root ) { | |||
root = window; | |||
} | |||
if ( ! $ || ! $.fn.dataTable ) { | |||
$ = require('datatables.net-dt')(root, $).$; | |||
} | |||
if ( ! $.fn.dataTable.Buttons ) { | |||
require('datatables.net-buttons')(root, $); | |||
} | |||
return factory( $, root, root.document ); | |||
}; | |||
} | |||
else { | |||
// Browser | |||
factory( jQuery, window, document ); | |||
} | |||
}(function( $, window, document, undefined ) { | |||
return $.fn.dataTable; | |||
})); |