mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Had broken API extension methods... There was a bit of confusion between oApi as an internal variable and as an external variable. This commit effectively brings them together - you can access the internal functions as regular API methods now - although that might not be a particularly good idea just yet - not to be documented until I'm happy with this.
This commit is contained in:
parent
d4366df398
commit
e2ac47b675
3
media/js/jquery.dataTables.js
vendored
3
media/js/jquery.dataTables.js
vendored
@ -5894,7 +5894,7 @@
|
|||||||
"_fnApplyColumnDefs": _fnApplyColumnDefs
|
"_fnApplyColumnDefs": _fnApplyColumnDefs
|
||||||
};
|
};
|
||||||
|
|
||||||
DataTable.ext.oApi = this.oApi;
|
$.extend( DataTable.ext.oApi, this.oApi );
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -5920,6 +5920,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var _that = this;
|
var _that = this;
|
||||||
return this.each(function() {
|
return this.each(function() {
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ this.oApi = {
|
|||||||
"_fnApplyColumnDefs": _fnApplyColumnDefs
|
"_fnApplyColumnDefs": _fnApplyColumnDefs
|
||||||
};
|
};
|
||||||
|
|
||||||
DataTable.ext.oApi = this.oApi;
|
$.extend( DataTable.ext.oApi, this.oApi );
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -115,3 +115,4 @@ for ( var sFunc in DataTable.ext.oApi )
|
|||||||
this[sFunc] = _fnExternApiFunc(sFunc);
|
this[sFunc] = _fnExternApiFunc(sFunc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user