1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

New: Api methods - to$, toJQuery and join

- to$ - Convert the result set to a jQuery object. Compliment to the
  toArray method. This is mainly useful when working with the node() and
  nodes() methods.

- toJQuery - Alias of to$

- join - Array join method
This commit is contained in:
Allan Jardine 2013-11-13 16:21:52 +00:00
parent da8358ce48
commit 7cf5f904d8
2 changed files with 16 additions and 1 deletions

View File

@ -1 +1 @@
72f440f125efda4868b280e1cf44c440e26cec00
e0f36e7c1ee9bd20ee1c5e6406836dba90136507

View File

@ -6386,6 +6386,9 @@
},
join: __arrayProto.join,
indexOf: __arrayProto.indexOf || function (obj, start)
{
for ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {
@ -6583,6 +6586,18 @@
},
to$: function ()
{
return $( this );
},
toJQuery: function ()
{
return $( this );
},
unique: function ()
{
return new _Api( this.context, _unique(this) );