Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9664 closed bug (invalid)

jQuery minified package > 1.5.2 bug

Reported by: chris@… Owned by: chris@…
Priority: low Milestone: 1.next
Component: build Version: 1.6b1
Keywords: Cc:
Blocked by: Blocking:

Description

Just found an issue with the minified package > 1.5.2 where trying to call a function of the jQuery or $ object caused the following error from this call.

$.post('[script]',function(d){ $('#[id]').show(); });

by changing '$('#[id]').show();' to any jQuery function the following error occurs.

i.exec is not a function (jquery-1.6.js line 16) (function(a,b){function cy(a){return f...h]&&f.event.trigger(c,d,b.handle.elem

From testing the error seems to have started with version 1.6 min.

1.5.2 min - OK, uncompressed - OK 1.6 min - Fail, uncompressed - OK 1.6.1 min - Fail, uncompressed - OK

Browser FF 3.6.18 OS Win7 64

Change History (8)

comment:1 Changed 8 years ago by timmywil

Component: unfiledbuild
Owner: set to chris@…
Priority: undecidedlow
Status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on http://jsfiddle.net that reproduces the issue experienced to help us assess your ticket.

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

comment:2 Changed 8 years ago by labraceta@…

Hi,

This happens to me too. With jQuery 1.6.1 min and 1.6.2 min.

Firefox 3.6

Thanks

comment:3 Changed 8 years ago by Rick Waldron

$('#[id]')

This type of id selector is not yet supported by jQuery.

Also, from the information I've been given from Mozilla, Firefox 3.6 is very close to End Of Life, so it doesn't make sense to write code that is tailored to a specific browser

comment:4 Changed 8 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

comment:5 Changed 8 years ago by anonymous

I've posted an answer in a similar ticket: http://bugs.jquery.com/ticket/9805#comment:3

You probably use a global variable named "i".

"Also, from the information I've been given from Mozilla, Firefox 3.6 is very close to End Of Life, so it doesn't make sense to write code that is tailored to a specific browser"

Almost 10% of the users still use Firefox http://gs.statcounter.com/#browser_version-ww-monthly-201108-201108-bar so it does make sense to write code that works with this browser.

comment:6 in reply to:  5 ; Changed 8 years ago by Vadim

You probably use a global variable named "i".

Right! But not global. In the "for" loop, I've been using "i" as name for iteration variable. Changing it to (for example) "iterator" - solves the problem.

comment:7 in reply to:  6 Changed 8 years ago by anonymous

My mistake, yep it was global :(

comment:8 Changed 8 years ago by william_notsolikingjquery

maybe I have a global "i" or not - who cares? going to uncompressed version fixes the problem that started for me after upgrading to 1.6.2-min

each upgrade i do to jquery breaks SOMETHING for SOMEONE

Note: See TracTickets for help on using tickets.