Browse files

Add ondocumentready listener which fires init, to handle rare cases w…

…hen init is not fired by the initial script execution nor by the element oncontentready handler. Fixes issue #23.
  • Loading branch information...
1 parent 57cabc8 commit ca4e5b25337c55401952d97272517ea2a5ec7522 Jason Johnston committed Jul 26, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 sources/htc_open.txt
@@ -12,6 +12,7 @@ Dual-licensed for use under the Apache License Version 2.0 or the General Public
<PUBLIC:ATTACH EVENT="onmouseenter" FOR="element" ONEVENT="mouseEntered()" />
<PUBLIC:ATTACH EVENT="onmouseleave" FOR="element" ONEVENT="mouseLeft()" />
<PUBLIC:ATTACH EVENT="oncontentready" FOR="element" ONEVENT="init()" />
+ <PUBLIC:ATTACH EVENT="ondocumentready" FOR="element" ONEVENT="init()" />
<PUBLIC:ATTACH EVENT="ondetach" FOR="element" ONEVENT="cleanup()" />
<script type="text/javascript">

0 comments on commit ca4e5b2

Please sign in to comment.