Modify ↓
Ticket #5230 (closed bug: worksforme)
JavaScript Error, var "start" not declared
| Reported by: | pMailAgency | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | core | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The file "jquery-1.3.2.js" etc. are to be modified as shown below. Because if the files are used with IE6 etc. then a JavaScript error occurs. The variable "start" should be declared before it is used.
File/Line:
http://jqueryjs.googlecode.com/files/jquery-1.3.2.js line 3899
After:
var start = e.cur(true) ...
Before:
start = e.cur(true) ...
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

The variable is declared, it's part of the preceding line:
var parts = rfxnum.exec(val), start = e.cur(true) || 0;The code has changed slightly since 1.3 because the regexp is now declared elsewhere.