Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Add ondocumentready listener which fires init, to handle rare cases w…
Browse files Browse the repository at this point in the history
…hen init is not fired by the initial script execution nor by the element oncontentready handler. Fixes issue #23.
  • Loading branch information
Jason Johnston committed Jul 26, 2010
1 parent 57cabc8 commit ca4e5b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/htc_open.txt
Expand Up @@ -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="onmouseenter" FOR="element" ONEVENT="mouseEntered()" />
<PUBLIC:ATTACH EVENT="onmouseleave" FOR="element" ONEVENT="mouseLeft()" /> <PUBLIC:ATTACH EVENT="onmouseleave" FOR="element" ONEVENT="mouseLeft()" />
<PUBLIC:ATTACH EVENT="oncontentready" FOR="element" ONEVENT="init()" /> <PUBLIC:ATTACH EVENT="oncontentready" FOR="element" ONEVENT="init()" />
<PUBLIC:ATTACH EVENT="ondocumentready" FOR="element" ONEVENT="init()" />
<PUBLIC:ATTACH EVENT="ondetach" FOR="element" ONEVENT="cleanup()" /> <PUBLIC:ATTACH EVENT="ondetach" FOR="element" ONEVENT="cleanup()" />


<script type="text/javascript"> <script type="text/javascript">

0 comments on commit ca4e5b2

Please sign in to comment.