mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Dev: Remove accidentally committed debug
This commit is contained in:
parent
7c07b80222
commit
be061edb7b
@ -1 +1 @@
|
||||
dc398992c231c000e165330ea595841c6b3df865
|
||||
3f592a7e7577aa6a8cebbea91ca53f427a778fa5
|
||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -6077,8 +6077,6 @@
|
||||
/* Setting up the initialisation object */
|
||||
_fnCamelToHungarian( defaults, oInit );
|
||||
|
||||
console.log( 'init' );
|
||||
|
||||
/* Check to see if we are re-initialising a table */
|
||||
var allSettings = DataTable.settings;
|
||||
for ( i=0, iLen=allSettings.length ; i<iLen ; i++ )
|
||||
|
32
media/js/jquery.dataTables.min.js
vendored
32
media/js/jquery.dataTables.min.js
vendored
@ -79,22 +79,22 @@ Na=function(a){var b=[],c,e,d=a.length,f,h=0;e=0;a:for(;e<d;e++){c=a[e];for(f=0;
|
||||
a.remove();b&&b.call(this,d,g);(c===n||c)&&e.draw();return g};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(!a)};this.fnFilter=function(a,b,c,e,d,g){d=this.api(!0);null===b||b===n?d.search(a,c,e,g):d.column(b).search(a,c,e,g);d.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==n){var e=a.nodeName?a.nodeName.toLowerCase():"";return b!==n||"td"==e||"th"==e?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=
|
||||
function(a){var b=this.api(!0);return a!==n?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===
|
||||
n||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===n||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return za(this[x.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,e,d){var g=this.api(!0);c===n||null===c?g.row(b).data(a):g.cell(b,c).data(a);(d===n||d)&&g.columns.adjust();(e===n||e)&&g.draw();return 0};this.fnVersionCheck=
|
||||
x.fnVersionCheck;var b=this,c=a===n,e=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var d in p.ext.internal)d&&(this[d]=Nb(d));this.each(function(){var d={},d=1<e?Lb(d,a,!0):a,h=0,i,j=this.getAttribute("id"),l=!1,k=p.defaults;if("table"!=this.nodeName.toLowerCase())S(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{eb(k);fb(k.column);H(k,k,!0);H(k.column,k.column,!0);H(k,d);console.log("init");var q=p.settings,h=0;for(i=q.length;h<i;h++){var o=q[h];if(o.nTable==this||
|
||||
o.nTHead.parentNode==this||o.nTFoot&&o.nTFoot.parentNode==this){h=d.bRetrieve!==n?d.bRetrieve:k.bRetrieve;if(c||h)return o.oInstance;if(d.bDestroy!==n?d.bDestroy:k.bDestroy){o.oInstance.fnDestroy();break}else{S(o,0,"Cannot reinitialise DataTable",3);return}}if(o.sTableId==this.id){q.splice(h,1);break}}if(null===j||""===j)this.id=j="DataTables_Table_"+p.ext._unique++;var m=g.extend(!0,{},p.models.oSettings,{nTable:this,oApi:b.internal,oInit:d,sDestroyWidth:g(this)[0].style.width,sInstance:j,sTableId:j});
|
||||
q.push(m);m.oInstance=1===b.length?b:g(this).dataTable();eb(d);d.oLanguage&&P(d.oLanguage);d.aLengthMenu&&!d.iDisplayLength&&(d.iDisplayLength=g.isArray(d.aLengthMenu[0])?d.aLengthMenu[0][0]:d.aLengthMenu[0]);d=Lb(g.extend(!0,{},k),d);E(m.oFeatures,d,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));E(m,d,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu",
|
||||
"sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);E(m.oScroll,d,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);E(m.oLanguage,d,"fnInfoCallback");z(m,"aoDrawCallback",d.fnDrawCallback,
|
||||
"user");z(m,"aoServerParams",d.fnServerParams,"user");z(m,"aoStateSaveParams",d.fnStateSaveParams,"user");z(m,"aoStateLoadParams",d.fnStateLoadParams,"user");z(m,"aoStateLoaded",d.fnStateLoaded,"user");z(m,"aoRowCallback",d.fnRowCallback,"user");z(m,"aoRowCreatedCallback",d.fnCreatedRow,"user");z(m,"aoHeaderCallback",d.fnHeaderCallback,"user");z(m,"aoFooterCallback",d.fnFooterCallback,"user");z(m,"aoInitComplete",d.fnInitComplete,"user");z(m,"aoPreDrawCallback",d.fnPreDrawCallback,"user");j=m.oClasses;
|
||||
d.bJQueryUI?(g.extend(j,p.ext.oJUIClasses,d.oClasses),d.sDom===k.sDom&&"lfrtip"===k.sDom&&(m.sDom='<"H"lfr>t<"F"ip>'),m.renderer)?g.isPlainObject(m.renderer)&&!m.renderer.header&&(m.renderer.header="jqueryui"):m.renderer="jqueryui":g.extend(j,p.ext.classes,d.oClasses);g(this).addClass(j.sTable);if(""!==m.oScroll.sX||""!==m.oScroll.sY)m.oScroll.iBarWidth=Hb();!0===m.oScroll.sX&&(m.oScroll.sX="100%");m.iInitDisplayStart===n&&(m.iInitDisplayStart=d.iDisplayStart,m._iDisplayStart=d.iDisplayStart);null!==
|
||||
d.iDeferLoading&&(m.bDeferLoading=!0,h=g.isArray(d.iDeferLoading),m._iRecordsDisplay=h?d.iDeferLoading[0]:d.iDeferLoading,m._iRecordsTotal=h?d.iDeferLoading[1]:d.iDeferLoading);var r=m.oLanguage;g.extend(!0,r,d.oLanguage);""!==r.sUrl&&(g.ajax({dataType:"json",url:r.sUrl,success:function(a){P(a);H(k.oLanguage,a);g.extend(true,r,a);ha(m)},error:function(){ha(m)}}),l=!0);null===d.asStripeClasses&&(m.asStripeClasses=[j.sStripeOdd,j.sStripeEven]);var h=m.asStripeClasses,s=g("tbody tr:eq(0)",this);-1!==
|
||||
g.inArray(!0,g.map(h,function(a){return s.hasClass(a)}))&&(g("tbody tr",this).removeClass(h.join(" ")),m.asDestroyStripes=h.slice());q=[];h=this.getElementsByTagName("thead");0!==h.length&&(ea(m.aoHeader,h[0]),q=qa(m));if(null===d.aoColumns){o=[];h=0;for(i=q.length;h<i;h++)o.push(null)}else o=d.aoColumns;h=0;for(i=o.length;h<i;h++)Fa(m,q?q[h]:null);ib(m,d.aoColumnDefs,o,function(a,b){ka(m,a,b)});if(s.length){var t=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};g.each(na(m,s[0]).cells,
|
||||
function(a,b){var c=m.aoColumns[a];if(c.mData===a){var e=t(b,"sort")||t(b,"order"),d=t(b,"filter")||t(b,"search");if(e!==null||d!==null){c.mData={_:a+".display",sort:e!==null?a+".@data-"+e:n,type:e!==null?a+".@data-"+e:n,filter:d!==null?a+".@data-"+d:n};ka(m,a)}}})}var u=m.oFeatures;d.bStateSave&&(u.bStateSave=!0,Kb(m,d),z(m,"aoDrawCallback",ya,"state_save"));if(d.aaSorting===n){q=m.aaSorting;h=0;for(i=q.length;h<i;h++)q[h][1]=m.aoColumns[h].asSorting[0]}xa(m);u.bSort&&z(m,"aoDrawCallback",function(){if(m.bSorted){var a=
|
||||
U(m),b={};g.each(a,function(a,c){b[c.src]=c.dir});v(m,null,"order",[m,a,b]);Jb(m)}});z(m,"aoDrawCallback",function(){(m.bSorted||B(m)==="ssp"||u.bDeferRender)&&xa(m)},"sc");gb(m);h=g(this).children("caption").each(function(){this._captionSide=g(this).css("caption-side")});i=g(this).children("thead");0===i.length&&(i=g("<thead/>").appendTo(this));m.nTHead=i[0];i=g(this).children("tbody");0===i.length&&(i=g("<tbody/>").appendTo(this));m.nTBody=i[0];i=g(this).children("tfoot");if(0===i.length&&0<h.length&&
|
||||
(""!==m.oScroll.sX||""!==m.oScroll.sY))i=g("<tfoot/>").appendTo(this);0===i.length||0===i.children().length?g(this).addClass(j.sNoFooter):0<i.length&&(m.nTFoot=i[0],ea(m.aoFooter,m.nTFoot));if(d.aaData)for(h=0;h<d.aaData.length;h++)J(m,d.aaData[h]);else(m.bDeferLoading||"dom"==B(m))&&ma(m,g(m.nTBody).children("tr"));m.aiDisplay=m.aiDisplayMaster.slice();m.bInitialised=!0;!1===l&&ha(m)}});b=null;return this};var Tb=[],w=Array.prototype,cc=function(a){var b,c,e=p.settings,d=g.map(e,function(a){return a.nTable});
|
||||
if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=g.inArray(a,d),-1!==b?[e[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=g(a):a instanceof g&&(c=a)}else return[];if(c)return c.map(function(){b=g.inArray(this,d);return-1!==b?e[b]:null}).toArray()};s=function(a,b){if(!this instanceof s)throw"DT API must be constructed as a new object";var c=[],e=function(a){(a=cc(a))&&c.push.apply(c,a)};if(g.isArray(a))for(var d=
|
||||
0,f=a.length;d<f;d++)e(a[d]);else e(a);this.context=Na(c);b&&this.push.apply(this,b.toArray?b.toArray():b);this.selector={rows:null,cols:null,opts:null};s.extend(this,this,Tb)};p.Api=s;s.prototype={concat:w.concat,context:[],each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new s(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)a.call(this,
|
||||
this[c],c,this)&&b.push(this[c]);return new s(this.context,b)},flatten:function(){var a=[];return new s(this.context,a.concat.apply(a,this.toArray()))},join:w.join,indexOf:w.indexOf||function(a,b){for(var c=b||0,e=this.length;c<e;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,e){var d=[],f,h,g,j,l,k=this.context,q,o,m=this.selector;"string"===typeof a&&(e=c,c=b,b=a,a=!1);h=0;for(g=k.length;h<g;h++){var p=new s(k[h]);if("table"===b)f=c.call(p,k[h],h),f!==n&&d.push(f);else if("columns"===
|
||||
b||"rows"===b)f=c.call(p,k[h],this[h],h),f!==n&&d.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){o=this[h];"column-rows"===b&&(q=Ca(k[h],m.opts));j=0;for(l=o.length;j<l;j++)f=o[j],f="cell"===b?c.call(p,k[h],f.row,f.column,h,j):c.call(p,k[h],f,h,j,q),f!==n&&d.push(f)}}return d.length||e?(a=new s(k,a?d.concat.apply([],d):d),b=a.selector,b.rows=m.rows,b.cols=m.cols,b.opts=m.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),
|
||||
arguments)},length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)b.push(a.call(this,this[c],c));return new s(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return hb(this,a,b,0,this.length,1)},reduceRight:w.reduceRight||function(a,b){return hb(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},
|
||||
x.fnVersionCheck;var b=this,c=a===n,e=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var d in p.ext.internal)d&&(this[d]=Nb(d));this.each(function(){var d={},d=1<e?Lb(d,a,!0):a,h=0,i,j=this.getAttribute("id"),l=!1,k=p.defaults;if("table"!=this.nodeName.toLowerCase())S(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{eb(k);fb(k.column);H(k,k,!0);H(k.column,k.column,!0);H(k,d);var q=p.settings,h=0;for(i=q.length;h<i;h++){var o=q[h];if(o.nTable==this||o.nTHead.parentNode==
|
||||
this||o.nTFoot&&o.nTFoot.parentNode==this){h=d.bRetrieve!==n?d.bRetrieve:k.bRetrieve;if(c||h)return o.oInstance;if(d.bDestroy!==n?d.bDestroy:k.bDestroy){o.oInstance.fnDestroy();break}else{S(o,0,"Cannot reinitialise DataTable",3);return}}if(o.sTableId==this.id){q.splice(h,1);break}}if(null===j||""===j)this.id=j="DataTables_Table_"+p.ext._unique++;var m=g.extend(!0,{},p.models.oSettings,{nTable:this,oApi:b.internal,oInit:d,sDestroyWidth:g(this)[0].style.width,sInstance:j,sTableId:j});q.push(m);m.oInstance=
|
||||
1===b.length?b:g(this).dataTable();eb(d);d.oLanguage&&P(d.oLanguage);d.aLengthMenu&&!d.iDisplayLength&&(d.iDisplayLength=g.isArray(d.aLengthMenu[0])?d.aLengthMenu[0][0]:d.aLengthMenu[0]);d=Lb(g.extend(!0,{},k),d);E(m.oFeatures,d,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));E(m,d,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource",
|
||||
"sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);E(m.oScroll,d,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);E(m.oLanguage,d,"fnInfoCallback");z(m,"aoDrawCallback",d.fnDrawCallback,"user");z(m,"aoServerParams",
|
||||
d.fnServerParams,"user");z(m,"aoStateSaveParams",d.fnStateSaveParams,"user");z(m,"aoStateLoadParams",d.fnStateLoadParams,"user");z(m,"aoStateLoaded",d.fnStateLoaded,"user");z(m,"aoRowCallback",d.fnRowCallback,"user");z(m,"aoRowCreatedCallback",d.fnCreatedRow,"user");z(m,"aoHeaderCallback",d.fnHeaderCallback,"user");z(m,"aoFooterCallback",d.fnFooterCallback,"user");z(m,"aoInitComplete",d.fnInitComplete,"user");z(m,"aoPreDrawCallback",d.fnPreDrawCallback,"user");j=m.oClasses;d.bJQueryUI?(g.extend(j,
|
||||
p.ext.oJUIClasses,d.oClasses),d.sDom===k.sDom&&"lfrtip"===k.sDom&&(m.sDom='<"H"lfr>t<"F"ip>'),m.renderer)?g.isPlainObject(m.renderer)&&!m.renderer.header&&(m.renderer.header="jqueryui"):m.renderer="jqueryui":g.extend(j,p.ext.classes,d.oClasses);g(this).addClass(j.sTable);if(""!==m.oScroll.sX||""!==m.oScroll.sY)m.oScroll.iBarWidth=Hb();!0===m.oScroll.sX&&(m.oScroll.sX="100%");m.iInitDisplayStart===n&&(m.iInitDisplayStart=d.iDisplayStart,m._iDisplayStart=d.iDisplayStart);null!==d.iDeferLoading&&(m.bDeferLoading=
|
||||
!0,h=g.isArray(d.iDeferLoading),m._iRecordsDisplay=h?d.iDeferLoading[0]:d.iDeferLoading,m._iRecordsTotal=h?d.iDeferLoading[1]:d.iDeferLoading);var r=m.oLanguage;g.extend(!0,r,d.oLanguage);""!==r.sUrl&&(g.ajax({dataType:"json",url:r.sUrl,success:function(a){P(a);H(k.oLanguage,a);g.extend(true,r,a);ha(m)},error:function(){ha(m)}}),l=!0);null===d.asStripeClasses&&(m.asStripeClasses=[j.sStripeOdd,j.sStripeEven]);var h=m.asStripeClasses,s=g("tbody tr:eq(0)",this);-1!==g.inArray(!0,g.map(h,function(a){return s.hasClass(a)}))&&
|
||||
(g("tbody tr",this).removeClass(h.join(" ")),m.asDestroyStripes=h.slice());q=[];h=this.getElementsByTagName("thead");0!==h.length&&(ea(m.aoHeader,h[0]),q=qa(m));if(null===d.aoColumns){o=[];h=0;for(i=q.length;h<i;h++)o.push(null)}else o=d.aoColumns;h=0;for(i=o.length;h<i;h++)Fa(m,q?q[h]:null);ib(m,d.aoColumnDefs,o,function(a,b){ka(m,a,b)});if(s.length){var t=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};g.each(na(m,s[0]).cells,function(a,b){var c=m.aoColumns[a];if(c.mData===a){var e=
|
||||
t(b,"sort")||t(b,"order"),d=t(b,"filter")||t(b,"search");if(e!==null||d!==null){c.mData={_:a+".display",sort:e!==null?a+".@data-"+e:n,type:e!==null?a+".@data-"+e:n,filter:d!==null?a+".@data-"+d:n};ka(m,a)}}})}var u=m.oFeatures;d.bStateSave&&(u.bStateSave=!0,Kb(m,d),z(m,"aoDrawCallback",ya,"state_save"));if(d.aaSorting===n){q=m.aaSorting;h=0;for(i=q.length;h<i;h++)q[h][1]=m.aoColumns[h].asSorting[0]}xa(m);u.bSort&&z(m,"aoDrawCallback",function(){if(m.bSorted){var a=U(m),b={};g.each(a,function(a,c){b[c.src]=
|
||||
c.dir});v(m,null,"order",[m,a,b]);Jb(m)}});z(m,"aoDrawCallback",function(){(m.bSorted||B(m)==="ssp"||u.bDeferRender)&&xa(m)},"sc");gb(m);h=g(this).children("caption").each(function(){this._captionSide=g(this).css("caption-side")});i=g(this).children("thead");0===i.length&&(i=g("<thead/>").appendTo(this));m.nTHead=i[0];i=g(this).children("tbody");0===i.length&&(i=g("<tbody/>").appendTo(this));m.nTBody=i[0];i=g(this).children("tfoot");if(0===i.length&&0<h.length&&(""!==m.oScroll.sX||""!==m.oScroll.sY))i=
|
||||
g("<tfoot/>").appendTo(this);0===i.length||0===i.children().length?g(this).addClass(j.sNoFooter):0<i.length&&(m.nTFoot=i[0],ea(m.aoFooter,m.nTFoot));if(d.aaData)for(h=0;h<d.aaData.length;h++)J(m,d.aaData[h]);else(m.bDeferLoading||"dom"==B(m))&&ma(m,g(m.nTBody).children("tr"));m.aiDisplay=m.aiDisplayMaster.slice();m.bInitialised=!0;!1===l&&ha(m)}});b=null;return this};var Tb=[],w=Array.prototype,cc=function(a){var b,c,e=p.settings,d=g.map(e,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];
|
||||
if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=g.inArray(a,d),-1!==b?[e[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=g(a):a instanceof g&&(c=a)}else return[];if(c)return c.map(function(){b=g.inArray(this,d);return-1!==b?e[b]:null}).toArray()};s=function(a,b){if(!this instanceof s)throw"DT API must be constructed as a new object";var c=[],e=function(a){(a=cc(a))&&c.push.apply(c,a)};if(g.isArray(a))for(var d=0,f=a.length;d<f;d++)e(a[d]);
|
||||
else e(a);this.context=Na(c);b&&this.push.apply(this,b.toArray?b.toArray():b);this.selector={rows:null,cols:null,opts:null};s.extend(this,this,Tb)};p.Api=s;s.prototype={concat:w.concat,context:[],each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new s(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)a.call(this,this[c],c,this)&&
|
||||
b.push(this[c]);return new s(this.context,b)},flatten:function(){var a=[];return new s(this.context,a.concat.apply(a,this.toArray()))},join:w.join,indexOf:w.indexOf||function(a,b){for(var c=b||0,e=this.length;c<e;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,e){var d=[],f,h,g,j,l,k=this.context,q,o,m=this.selector;"string"===typeof a&&(e=c,c=b,b=a,a=!1);h=0;for(g=k.length;h<g;h++){var p=new s(k[h]);if("table"===b)f=c.call(p,k[h],h),f!==n&&d.push(f);else if("columns"===b||"rows"===
|
||||
b)f=c.call(p,k[h],this[h],h),f!==n&&d.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){o=this[h];"column-rows"===b&&(q=Ca(k[h],m.opts));j=0;for(l=o.length;j<l;j++)f=o[j],f="cell"===b?c.call(p,k[h],f.row,f.column,h,j):c.call(p,k[h],f,h,j,q),f!==n&&d.push(f)}}return d.length||e?(a=new s(k,a?d.concat.apply([],d):d),b=a.selector,b.rows=m.rows,b.cols=m.cols,b.opts=m.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},
|
||||
length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)b.push(a.call(this,this[c],c));return new s(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return hb(this,a,b,0,this.length,1)},reduceRight:w.reduceRight||function(a,b){return hb(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},
|
||||
to$:function(){return g(this)},toJQuery:function(){return g(this)},unique:function(){return new s(this.context,Na(this))},unshift:w.unshift};s.extend=function(a,b,c){if(b&&(b instanceof s||b.__dt_wrapper)){var e,d,f,h=function(a,b,c){return function(){var e=b.apply(a,arguments);s.extend(e,e,c.methodExt);return e}};e=0;for(d=c.length;e<d;e++)f=c[e],b[f.name]="function"===typeof f.val?h(a,f.val,f):g.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,s.extend(a,b[f.name],f.propExt)}};s.register=
|
||||
r=function(a,b){if(g.isArray(a))for(var c=0,e=a.length;c<e;c++)s.register(a[c],b);else for(var d=a.split("."),f=Tb,h,i,c=0,e=d.length;c<e;c++){h=(i=-1!==d[c].indexOf("()"))?d[c].replace("()",""):d[c];var j;a:{j=0;for(var l=f.length;j<l;j++)if(f[j].name===h){j=f[j];break a}j=null}j||(j={name:h,val:{},methodExt:[],propExt:[]},f.push(j));c===e-1?j.val=b:f=i?j.methodExt:j.propExt}};s.registerPlural=u=function(a,b,c){s.register(a,c);s.register(b,function(){var a=c.apply(this,arguments);return a===this?
|
||||
this:a instanceof s?a.length?g.isArray(a[0])?new s(a.context,a[0]):a[0]:n:a})};r("tables()",function(a){var b;if(a){b=s;var c=this.context;if("number"===typeof a)a=[c[a]];else var e=g.map(c,function(a){return a.nTable}),a=g(e).filter(a).map(function(){var a=g.inArray(this,e);return c[a]}).toArray();b=new b(a)}else b=this;return b});r("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new s(b[0]):a});u("tables().nodes()","table().node()",function(){return this.iterator("table",
|
||||
|
Loading…
x
Reference in New Issue
Block a user