Firebug 1.6 doesn't show me JS errors
I am working in local and I just updated firebug to the new version. Before the update whatever error that I was making with js, firebug was showing me on which line wasn't working the code (so I could understand where I did the mistake).
Now my website breaks, but I don't receive any message about JS not working from firebug. Is there something changed? Script is enabled.
this is the code
$("#cv").hover(
// when the mouse enters the box do...
function(){
$("#hover-cv").css("z-index":"6");
aniCircle(1, $(this), "#hover-cv", {scale:"1", "opacity":"0"}, {scale:"1.3", "opacity":"1"});
},
// when the mouse leaves the box do...
function() {
$("#hover-cv").css("z-index":"4");
aniCircle(0, $(this), "#hover-cv", {scale:"1", "opacity":"0"});
}
);
what is creating the error are the scripts "$("#hover-cv").css("z-index":"6");" and "$("#hover-cv").开发者_JAVA百科css("z-index":"4");"
I don't understand why Firebug doesn't warn me that something is wrong. More than the solution, I am worried about firebug not warning me on js errors.
You either need a comma for the single .css(property, value)
version:
$("#hover-cv").css("z-index","6");
Or object notation (with the missing {}
) for the property map version .css(props)
:
$("#hover-cv").css({"z-index":"6"});
^ missing ^
I am seeing the same behavior in FireBug 1.6 as you not reporting this, can't find any mention of the bug in the issues list though.
精彩评论