Quantcast
Viewing all articles
Browse latest Browse all 82152

Datatable 1.9.4 ColReorder : "Cannot call method 'proxy' of undefined"

Hi,

After updating to datatables 1.9.4, I notice that the ColReorder plugin is throwing the following exception

Issue:

Source: http://10.16.18.34:9091/platform/libs/js/datatables/ColReorder.js

Line # 407

Error: Uncaught TypeError: Cannot call method 'proxy' of undefined

Fix:

To fix the above issue I just add to change jQuery.proxy to $.proxy on line #407 in the ColReorder plugin

Before fix:

oDTSettings.oApi._fnCallbackReg(oDTSettings, 'aoDestroyCallback', jQuery.proxy(this._fnDestroy, this), 'ColReorder');

After the fix :

oDTSettings.oApi._fnCallbackReg(oDTSettings, 'aoDestroyCallback', $.proxy(this._fnDestroy, this), 'ColReorder');


Upon making the above change I fixed the issue with colReorder. Just wanted to let the community know about this.


Thanks,

Nikhil

Viewing all articles
Browse latest Browse all 82152

Trending Articles