It tries to find column by index, but can't so throws error.
This change (line 161):
widget.iColumn = widget.oColumn['mData'];
fixes the error.
To make aiExclude work with mData instead of column indexes, we need to change line 116 to:
if ( oColumn.bVisible && sExcludeList.indexOf( '|' + oColumn.mData + '|' ) < 0 ) {
It tries to find column by index, but can't so throws error. This change (line 161): widget.iColumn = widget.oColumn['mData'];
fixes the error.
To make aiExclude work with mData instead of column indexes, we need to change line 116 to: if ( oColumn.bVisible && sExcludeList.indexOf( '|' + oColumn.mData + '|' ) < 0 ) {