EasyUI Forum

General Category => Bug Report => Topic started by: hande89 on August 24, 2015, 01:43:11 AM



Title: jquery.easyui.min.js syntax error
Post by: hande89 on August 24, 2015, 01:43:11 AM
In the newest version of Firefox (40.0.2) if I open your demo page http://www.jeasyui.com/demo/main/index.php with browser console open, I can see the following error in there:

SyntaxError: unreachable code after return statement jquery.easyui.min.js line 8166


Title: Re: jquery.easyui.min.js syntax error
Post by: jarry on August 24, 2015, 05:31:16 AM
This is a warning message. It has been fixed.


Title: Re: jquery.easyui.min.js syntax error
Post by: BCottle on October 29, 2015, 02:31:14 PM
May I ask if this was related to the timespinner parser function? Because the code I have (1.4.3) still has this bug in it.

Specifically, in jquery.timespinner.js line 206, there is an IF statement after the return.


Title: Re: jquery.easyui.min.js syntax error
Post by: jarry on October 29, 2015, 05:02:53 PM
It is not a bug, it is only a warning message. You can download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.3-patch.zip.


Title: Re: jquery.easyui.min.js syntax error
Post by: BCottle on November 09, 2015, 07:29:43 AM
Thanks for the patch. I assume all I have to do is load it right after I load the standard library.

As far as being a bug, I assumed that unreachable code was supposed to be reachable. Upon looking again, I see it is just a copy of what was in the parseD() function, so it just needed to be removed. I can live with that being 'just a warning', then. ;-)