I was working on a web development project. Until 30 minutes ago, I had discovered something strange with my code. It worked well on IE and Chrome but it created random results on Mozilla Firefox version 3.6.12. So i did some quick alert()s to find out whats went wrong. Surprisingly, I found out that if you pass a callback function that can accept parameter into setInterval. It will pass random numbers into the callback function when it wasn't suppose to. I tried to start Firefox in safe mode and run the test again. Unfortunately, the bug still exists.
If you're geeky enough to watch the bug live in action just head over the demo page to reproduce the bug.
Update #1: I just tested the code with setTimeout() it seems like setTimeout() is affected as well.
Update #2: I just filed a report at Bugzilla@Mozilla.
Update #3: It was my mistake. :P It isn't a bug but an inconsistency between browsers.
Confidence
She said that I'm a confidence person whom I think I'm not. A confidence person must be mentally strong and able to face challenges as well as projecting a strong image to others. A lot of things had happened in my life lately, my blog is just showing a tip of the iceberg. Some, which I had decided to withheld until I find the right time to write about them. I keep telling and convincing myself so that I can get to pass these phases. Saying that "Constants cannot be redefined" is merely another way to say "Whatever Happened, Happened". I always believe that things happen for a reason. We could either face it, change it or ignore it. I made up my mind to really deal with the problems and change my life. I have no idea what the changes will bring. Be it good or bad I believed this is what I need to do. It is a right thing to do... I suppose.
你·我
那天发生了一些事情。是关于你和我。我知道挣扎于事无补。我知道伤心你会笑我傻。搞乱了你的生活秩序是我不对。可是,有些事情你不用去疑惑、质疑。友谊是真,一直都存在着的。短讯传来,你告述需要几天时间整顿思绪。我只想说我需要更长的时间...
订阅:
博文 (Atom)