Modify ↓
Ticket #5347 (closed bug: invalid)
Function Parameter is Redeclared
| Reported by: | user52 | Owned by: | john |
|---|---|---|---|
| Priority: | trivial | Milestone: | 1.4 |
| Component: | selector | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
"Warning: variable i redeclares argument"
Source File: jquery-1.3.2.js
Line: 1949, Column: 14
Source Code:
for ( var i = 0, l = not.length; i < l; i++ ) { ...
Change:
for ( var i = 0, l = not.length; i < l; i++ ) {
if ( not[i] === elem ) {
return false;
}
}
To:
for ( var j = 0, l = not.length; j < l; j++ ) {
if ( not[j] === elem ) {
return false;
}
}
Change History
comment:2 Changed 4 years ago by user52
Screenshot: http://imgur.com/a6aDt.png
Enable these options in Firebug: http://imgur.com/TYZUY.png
This page generates the message:
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.js"></script>
</head>
<body>
</body>
</html>
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.

What is generating this message?