Side navigation
#5347 closed bug (invalid)
Opened October 10, 2009 07:02AM UTC
Closed October 27, 2010 10:33PM UTC
Function Parameter is Redeclared
| Reported by: | user52 | Owned by: | john |
|---|---|---|---|
| Priority: | trivial | Milestone: | 1.4 |
| Component: | selector | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
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;
}
}
Attachments (0)
Change History (3)
Changed October 11, 2009 01:35PM UTC by comment:1
| priority: | major → trivial |
|---|
Changed October 11, 2009 08:15PM UTC by comment:2
Screenshot:
Enable these options in Firebug:
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>
Changed October 27, 2010 10:33PM UTC by comment:3
| resolution: | → invalid |
|---|---|
| status: | new → closed |
This error cannot be reproduced. Additionally, the codebase has changed.
What is generating this message?