1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +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:
Allan Jardine 2012-01-19 09:36:55 +00:00
parent 1421a08b90
commit 139f33603a
4 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
/**
* @summary DataTables
* @description Paginate, search and sort HTML tables
* @version 1.9.0.beta.2
* @version 1.9.0.dev.3
* @file jquery.dataTables.js
* @author Allan Jardine (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
@ -4898,7 +4898,7 @@
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
/* 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++ )
{
@ -6451,7 +6451,7 @@
* @type string
* @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

View File

@ -1,7 +1,7 @@
/**
* @summary DataTables
* @description Paginate, search and sort HTML tables
* @version 1.9.0.beta.2
* @version 1.9.0.dev.3
* @file jquery.dataTables.js
* @author Allan Jardine (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
@ -91,7 +91,7 @@
* @type string
* @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

View File

@ -157,7 +157,7 @@ this.fnAddData = function( mData, bRedraw )
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
/* 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++ )
{

View File

@ -1,6 +1,6 @@
{
"name": "DataTables",
"version": "1.9.0.beta.2",
"version": "1.9.0.dev.3",
"title": "DataTables",
"author": {
"name": "Allan Jardine",