Responsive.prototype._constructor init.dtr event fails to reserve 'dt' namespace
Responsive.prototype._constructor init.dtr event fails to reserve 'dt' namespace
ssirius
Posts: 1Questions: 1Answers: 0
Hi there,
I've ran into this bug since 'init.dtr' event collided with my own 'init' event. Please apply this bugfix.
before:
dt.on( 'init.dtr', function (e, settings, details) {
that._resizeAuto();
that._resize();
// If columns were hidden, then DataTables needs to adjust the
// column sizing
if ( $.inArray( false, that.s.current ) ) {
dt.columns.adjust();
}
} );
after fix:
dt.on( 'init.dtr', function (e, settings, details) {
if ( e.namespace !== 'dt' ) {
return;
}
that._resizeAuto();
that._resize();
// If columns were hidden, then DataTables needs to adjust the
// column sizing
if ( $.inArray( false, that.s.current ) ) {
dt.columns.adjust();
}
} );
This discussion has been closed.
Answers
Thank you, the change is committed here and will be in the next release.
Allan