Skip to main content

Bug Tracker

Side navigation

#9664 closed bug (invalid)

Opened June 24, 2011 02:55PM UTC

Closed July 16, 2011 08:00AM UTC

Last modified August 19, 2011 07:40PM UTC

jQuery minified package > 1.5.2 bug

Reported by: chris@mtex.ca Owned by: chris@mtex.ca
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

Attachments (0)
Change History (8)

Changed June 24, 2011 03:13PM UTC by timmywil comment:1

component: unfiledbuild
owner: → chris@mtex.ca
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.

Changed July 01, 2011 02:22PM UTC by labraceta@gmail.com comment:2

Hi,

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

Firefox 3.6

Thanks

Changed July 01, 2011 02:37PM UTC by rwaldron comment:3

$('#[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

Changed July 16, 2011 08:00AM UTC by trac-o-bot comment:4

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!

Changed August 11, 2011 04:44PM UTC by anonymous comment:5

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.

Changed August 19, 2011 03:24PM UTC by Vadim comment:6

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.

Changed August 19, 2011 03:26PM UTC by anonymous comment:7

My mistake, yep it was global :(

Changed August 19, 2011 07:40PM UTC by william_notsolikingjquery comment:8

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