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:
parent
da8358ce48
commit
7cf5f904d8
@ -1 +1 @@
|
|||||||
72f440f125efda4868b280e1cf44c440e26cec00
|
e0f36e7c1ee9bd20ee1c5e6406836dba90136507
|
||||||
|
15
media/js/jquery.dataTables.js
vendored
15
media/js/jquery.dataTables.js
vendored
@ -6386,6 +6386,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
join: __arrayProto.join,
|
||||||
|
|
||||||
|
|
||||||
indexOf: __arrayProto.indexOf || function (obj, start)
|
indexOf: __arrayProto.indexOf || function (obj, start)
|
||||||
{
|
{
|
||||||
for ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {
|
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 ()
|
unique: function ()
|
||||||
{
|
{
|
||||||
return new _Api( this.context, _unique(this) );
|
return new _Api( this.context, _unique(this) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user