Code not updating (not in preview and not in published page)

hi. I am new to Wix, so far it looks great. but, I wrote some button event, and it worked well. I then edited the function and it refuses to update. I only get the old code both in preview and published. ideas?

Thanks.