Home › Forums › JavaScript › Need Function to Complete before Proceeding › Re: Need Function to Complete before Proceeding
July 26, 2012 at 2:01 pm
#106834
Member
Well, for starters I would suggest not creating your own function that has the exact same name as one that jQuery uses itself.
If you wrote fadeTo() yourself, I would just add in a callback for it. This will give you a good start: http://stackoverflow.com/questions/1031674/how-do-i-write-a-jquery-function-that-accepts-a-callback-as-a-parameter
I’d also change the name of the function ;)