Bug Tracker

Opened 10 years ago

Closed 9 years ago

#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:
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;
	}
}

Change History (3)

comment:1 Changed 10 years ago by dmethvin

Priority: majortrivial

What is generating this message?

comment:2 Changed 10 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>

comment:3 Changed 9 years ago by Rick Waldron

Resolution: invalid
Status: newclosed

This error cannot be reproduced. Additionally, the codebase has changed.

Note: See TracTickets for help on using tickets.