Hacking on a dojo dijit widget today I came across some strange behaviour that only seemed to happen in IE. Turns out the reassignment of an image node's onload was causing the new onload hander to fire. Here's the code that reassigns onload:
img.onload = function(){ self.onImageLoad(); }
IE is not open source so I can't diagnose exactly why the onload fires when reassigned. I worked around it by making sure that the premature firing would not be harmful.
2 comments:
Thank you for posting such a useful website. Your weblog happens to be not just informative but also very stimulating too. There are a limited number of people who are capable of write technical articles that creatively. we are on the lookout for information regarding this topic. We ourselves went through several websites to find knowledge with regard to this.I will keep coming back !! Bet Prediction Bet at Home
You have to be really educated in order to download something useful. And I know that on https://homework-writer.com/blog/getting-better-grades you can find advices about getting better grades.
Post a Comment