Bug Tracker

Ticket #7613 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

query about minimised code

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

Firefox's firebug is throwing an error "reference to undefined property a[c.expando]" and shows this part of the code base

from jquery.1.4.4.min.js on firefox 3.6.12

--snip e);if(e=e&&e.events){delete f.handle;f...f(d==="margin")e+=parseFloat(c.css(a, --snip

does the e=e in the if statement actually do anything? is the minification code broken?

Change History

comment:1 Changed 4 years ago by jitter

  • Owner set to anonymous
  • Status changed from new to pending

Thanks for taking the time to contribute to the jQuery project by writing a bug report!

Please submit a reduced test case, which reproduces the issue you are experiencing, on  http://jsfiddle.net. So that we can investigate this issue further.

And yes the e=e&&e.events statement does something and the minification code is most likely not broken also the code snippet you posted doesn't include the statement a[c.expando] and this probably unrelated.


 How to report bugs

Last edited 4 years ago by jitter (previous) (diff)

comment:2 Changed 4 years ago by jitter

  • Owner anonymous deleted
  • Status changed from pending to new

comment:3 Changed 4 years ago by jitter

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

No test case was submitted. So closing this. Feel free to reopen with a reproducible test case

Last edited 4 years ago by jitter (previous) (diff)

comment:4 Changed 4 years ago by kdolan@…

I also get "reference to undefined property a[c.expando]" on line 42 from Firefox from jquery 1.4.3 quite a lot. It only freezes page load when Firefox is in debug mode.

The HTML page also includes the jquery.tablesorter plugin. Sometimes the HTML is generated with a table and sometimes not. The error seems to occur when the table is not present in the HTML. But that theory has not be thoroughly tested.

Here's the Break line #42 of jquery 1.4.3 (it include the c.expando):

cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var pa={},Oa=/(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?pa:a;var e=a.nodeType,f=e?a[c.expando]:null,h=c.cache;if(!(e&&!f&&typeof b==="string"&&d===A)){if(e)f
(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=
Note: See TracTickets for help on using tickets.