marconiduarte / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

AssetPackager RubyOnRails plugin and swfobject.js #280

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use AssetPackager plugin for RubyOnRails to compress swfobject.js
2. Use IE7 to load SlideShowPro or other flash
3. Error on page: Error: Unexpected call to method or property access.

What is the expected output? What do you see instead?
I think this has to do with swfobject not passing a javascript lint test
and therefore when compressed it bonks in IE.

What version of the product are you using? On what operating system?
2.1 Windows and Ubuntu

Please provide any additional information below.

Original issue reported on code.google.com by jocm...@gmail.com on 8 Mar 2009 at 7:05

GoogleCodeExporter commented 9 years ago
This has probably to do with the software you use to package swfobject.js, which
probably destructs the script. FYI swfobject.js already comes in a minimized 
form, so
you don't need to use a JS compressor anymore.

JSLint interprets JS code oftentimes too strict (or returns incorrect 
warnings), it's
 a good help to help you author and verify your JS code, however it doesn't mean when
some JS code doesn't pass that it isn't valid.

For further discussion, please use the SWFObject discussion group.

Original comment by bobbyvandersluis on 9 Mar 2009 at 9:35