TableHeadFixer icon indicating copy to clipboard operation
TableHeadFixer copied to clipboard

Fixed Uncaught TypeError

Open rsmithlal opened this issue 9 years ago • 1 comments

Uncaught TypeError: Cannot read property 'left' of null tableHeadFixer.js?body=1:247

Check that the "cell" variable actually contains something before calling a method on it.

It broke my page's JS when my dynamically generated table didn't have enough columns to need to be fixed. This small change fixed my problem.

rsmithlal avatar Feb 19 '16 21:02 rsmithlal

solverLeftColspan @ tableHeadFixer.js?body=1:247 (anonymous function) @ tableHeadFixer.js?body=1:161 jQuery.extend.each @ jquery.js?body=1:649 jQuery.fn.jQuery.each @ jquery.js?body=1:271 fixLeft @ tableHeadFixer.js?body=1:159 (anonymous function) @ tableHeadFixer.js?body=1:26 jQuery.extend.each @ jquery.js?body=1:649 jQuery.fn.jQuery.each @ jquery.js?body=1:271 $.fn.tableHeadFixer @ tableHeadFixer.js?body=1:14 (anonymous function) @ items?day=6:425 fire @ jquery.js?body=1:1038 self.fireWith @ jquery.js?body=1:1149 jQuery.extend.ready @ jquery.js?body=1:434 completed @ jquery.js?body=1:104

rsmithlal avatar Feb 19 '16 21:02 rsmithlal