MCPcopy Create free account
hub / github.com/blockstrap/framework / _fnLog

Function _fnLog

blockstrap/js/dependencies/tables.js:4813–4838  ·  view source on GitHub ↗

* Log an error message * @param {object} settings dataTables settings object * @param {int} level log error messages, or display them to the user * @param {string} msg error message * @param {int} tn Technical note id to get more information about the error. * @memberof DataTable#oApi

( settings, level, msg, tn )

Source from the content-addressed store, hash-verified

4811 * @memberof DataTable#oApi
4812 */
4813 function _fnLog( settings, level, msg, tn )
4814 {
4815 msg = 'DataTables warning: '+
4816 (settings!==null ? 'table id='+settings.sTableId+' - ' : '')+msg;
4817
4818 if ( tn ) {
4819 msg += '. For more information about this error, please see '+
4820 'http://datatables.net/tn/'+tn;
4821 }
4822
4823 if ( ! level ) {
4824 // Backwards compatibility pre 1.10
4825 var ext = DataTable.ext;
4826 var type = ext.sErrMode || ext.errMode;
4827
4828 if ( type == 'alert' ) {
4829 alert( msg );
4830 }
4831 else {
4832 throw new Error(msg);
4833 }
4834 }
4835 else if ( window.console && console.log ) {
4836 console.log( msg );
4837 }
4838 }
4839
4840
4841 /**

Callers 4

_fnGetCellDataFunction · 0.85
_fnPageChangeFunction · 0.85
_fnScrollDrawFunction · 0.85
tables.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected