Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
187
rated 0 times [  189] [ 2]  / answers: 1 / hits: 40243  / 14 Years ago, mon, may 3, 2010, 12:00:00

I'm using CurvyCorners to make my corners curvy in IE, only thing is that when it reads the CSS it takes all the webkit properties and shows me an alert curvyCorners.alert(No object with ID + arg + exists yet.nCall curvyCorners(settings, obj) when it is created.);.



How can I just set this if statement to do nothing?



if (j === null)
do nothing(); //but in real script


Thanks :)


More From » html

 Answers
5

Do you have access to the code? If so, you can add this code to the start of the curvyCorners function definition:



if (!obj) return;


This will quit the curvyCorners function silently if the element doesn't exist.


[#96898] Thursday, April 29, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
parkernotnamedt

Total Points: 539
Total Questions: 90
Total Answers: 99

Location: Hong Kong
Member since Tue, Oct 19, 2021
3 Years ago
;