1
0
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:
Allan Jardine 2011-12-08 10:53:22 +00:00
parent d4366df398
commit e2ac47b675
2 changed files with 4 additions and 2 deletions

View File

@ -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() {

View File

@ -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);
} }
} }