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

Function compat

blockstrap/js/dependencies/tables.js:2553–2555  ·  view source on GitHub ↗
( old, modern )

Source from the content-addressed store, hash-verified

2551 // v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
2552 // Support both
2553 var compat = function ( old, modern ) {
2554 return json[old] !== undefined ? json[old] : json[modern];
2555 };
2556
2557 var draw = compat( 'sEcho', 'draw' );
2558 var recordsTotal = compat( 'iTotalRecords', 'recordsTotal' );

Callers 1

_fnAjaxUpdateDrawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected