EasyUI Forum
May 17, 2024, 02:10:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: jquery.easyui.min.js syntax error  (Read 10492 times)
hande89
Jr. Member
**
Posts: 56


View Profile
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: August 24, 2015, 05:31:16 AM »

This is a warning message. It has been fixed.
Logged
BCottle
Newbie
*
Posts: 17



View Profile
« Reply #2 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #3 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.
Logged
BCottle
Newbie
*
Posts: 17



View Profile
« Reply #4 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. ;-)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!