#308 closed bug (worksforme)
Making jquery 1.0.2 work in Firefox 2.0 ...
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | |
Keywords: | javascript construction | Cc: | |
Blocked by: | Blocking: |
Description
Don't know if it is really a bug of jquery or one of javascript 1.7 !???
But it seams that the javascript construction:
if ( obj.constructor == String )
does not work all the times in firefox 2.0. But replacing it with:
if ( (typeof obj) = 'string') (obj.constructor == String ))
it solves the problem! I found this construction 3 times in the version 1.0.2 of jquery !!!
Change History (3)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Not able to duplicate this, closing.
comment:3 Changed 16 years ago by
The only time this happens is after passing an argument to flash via ExternalInterface. It's a firefox2 bug: https://bugzilla.mozilla.org/show_bug.cgi?id=361370
However, changing all checks on the constructor to a typeof check as suggested works around this problem. Anyone know if there are consequences to doing this that might not be obvious?
Can you provide some examples of this? I have not been able to duplicate this, at all. Additionally, JavaScript 1.7 is not enabled in Firefox by default, so that's not the problem.