mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-07 05:54:15 +01:00
DataTables 1.9.0.dev.3
Fix: fnAddData - check for 2D array could fail on null, since null is an object type - 8134
This commit is contained in:
parent
1421a08b90
commit
139f33603a
6
media/js/jquery.dataTables.js
vendored
6
media/js/jquery.dataTables.js
vendored
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @summary DataTables
|
* @summary DataTables
|
||||||
* @description Paginate, search and sort HTML tables
|
* @description Paginate, search and sort HTML tables
|
||||||
* @version 1.9.0.beta.2
|
* @version 1.9.0.dev.3
|
||||||
* @file jquery.dataTables.js
|
* @file jquery.dataTables.js
|
||||||
* @author Allan Jardine (www.sprymedia.co.uk)
|
* @author Allan Jardine (www.sprymedia.co.uk)
|
||||||
* @contact www.sprymedia.co.uk/contact
|
* @contact www.sprymedia.co.uk/contact
|
||||||
@ -4898,7 +4898,7 @@
|
|||||||
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
||||||
|
|
||||||
/* Check if we want to add multiple rows or not */
|
/* Check if we want to add multiple rows or not */
|
||||||
if ( typeof mData[0] === "object" )
|
if ( $.isArray(mData[0]) )
|
||||||
{
|
{
|
||||||
for ( var i=0 ; i<mData.length ; i++ )
|
for ( var i=0 ; i<mData.length ; i++ )
|
||||||
{
|
{
|
||||||
@ -6451,7 +6451,7 @@
|
|||||||
* @type string
|
* @type string
|
||||||
* @default Version number
|
* @default Version number
|
||||||
*/
|
*/
|
||||||
DataTable.version = "1.9.0.beta.2";
|
DataTable.version = "1.9.0.dev.3";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private data store, containing all of the settings objects that are created for the
|
* Private data store, containing all of the settings objects that are created for the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @summary DataTables
|
* @summary DataTables
|
||||||
* @description Paginate, search and sort HTML tables
|
* @description Paginate, search and sort HTML tables
|
||||||
* @version 1.9.0.beta.2
|
* @version 1.9.0.dev.3
|
||||||
* @file jquery.dataTables.js
|
* @file jquery.dataTables.js
|
||||||
* @author Allan Jardine (www.sprymedia.co.uk)
|
* @author Allan Jardine (www.sprymedia.co.uk)
|
||||||
* @contact www.sprymedia.co.uk/contact
|
* @contact www.sprymedia.co.uk/contact
|
||||||
@ -91,7 +91,7 @@
|
|||||||
* @type string
|
* @type string
|
||||||
* @default Version number
|
* @default Version number
|
||||||
*/
|
*/
|
||||||
DataTable.version = "1.9.0.beta.2";
|
DataTable.version = "1.9.0.dev.3";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private data store, containing all of the settings objects that are created for the
|
* Private data store, containing all of the settings objects that are created for the
|
||||||
|
@ -157,7 +157,7 @@ this.fnAddData = function( mData, bRedraw )
|
|||||||
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
||||||
|
|
||||||
/* Check if we want to add multiple rows or not */
|
/* Check if we want to add multiple rows or not */
|
||||||
if ( typeof mData[0] === "object" )
|
if ( $.isArray(mData[0]) )
|
||||||
{
|
{
|
||||||
for ( var i=0 ; i<mData.length ; i++ )
|
for ( var i=0 ; i<mData.length ; i++ )
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "DataTables",
|
"name": "DataTables",
|
||||||
"version": "1.9.0.beta.2",
|
"version": "1.9.0.dev.3",
|
||||||
"title": "DataTables",
|
"title": "DataTables",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Allan Jardine",
|
"name": "Allan Jardine",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user