Bug Tracker

Modify

Ticket #5347 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

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:1 Changed 4 years ago by dmethvin

  • Priority changed from major to trivial

What is generating this message?

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>

comment:3 Changed 3 years ago by rwaldron

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.