Active
Project:
css3pie
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Feb 2012 at 13:07 UTC
Updated:
23 Apr 2013 at 05:46 UTC
In IE8, I get an error "Expected )" on line 8 of css3pie.js (with only one selector). Here's the code generated by the module (indentations added):
$(function() {
if (window.PIE) {
$(function() {
$('.shadowed').each(function() {
PIE.attach(this);
});
}
});You'll notice that an end parentheses and an end bracket are missing. If I manually change this file to:
$(function() {
if (window.PIE) {
$(function() {
$('.shadowed').each(function() {
PIE.attach(this);
});
});
}
});...then I now get a new error in IE8, saying "Object expected" on line 1. I think that's because "$" is probably supposed to be jQuery, and since the Javascript is added with drupal_add_html_head(), the Javascript is added to the HTML before jQuery is added to the page. So, IE doesn't know what "$" is.
Comments
Comment #1
blackice2999 commentedhi you are right the js part need some reworks. i will show about the part today
Comment #2
jhonatan.ambrosio commentedthere's any solution for the bug with js?
Comment #3
GemVinny commentedIs there a solution to this bug?
Thanks
Gem