Commit cf80d76d authored by Ivan Tyagov's avatar Ivan Tyagov

timeout is evil. Use gadgets' ready event.

parent bda83e7c
......@@ -34,7 +34,10 @@
</item>
<item>
<key> <string>_text</string> </key>
<value> <unicode>\074div gadget="" id="main-interactor"\076\n
<value> <unicode>\074div gadget="test_gadgets/B" id="B"\076\074/div\076\n
\074div gadget="test_gadgets/C" id="C"\076\074/div\076\n
\n
\074div gadget="" id="main-interactor"\076\n
\074connect source="B.jsCall1" destination="C.jsCall1"\076\074/connect\076\n
\074connect source="B.htmlEvent1" destination="C.htmlEvent1"\076\074/connect\076\n
\074connect source="B.htmlEvent1" destination="B.myOwnHtmlEvent1"\076\074/connect\076\n
......@@ -42,13 +45,11 @@
\074connect source="C.jsCall2" destination="B.jsCall2"\076\074/connect\076\n
\074/div\076\n
\n
\074div gadget="test_gadgets/B" id="B"\076\074/div\076\n
\074div gadget="test_gadgets/C" id="C"\076\074/div\076\n
\n
\074script type="text/javascript" language="javascript"\076\n
//\074![CDATA[\n
$(document).ready(function() {\n
window.setTimeout(\'InteractionGadget.bind($("#main-interactor"));\', 1000);\n
GadgetIndex.getRootGadget().getDom().bind("ready", function () {\n
InteractionGadget.bind($("#main-interactor"));});\n
});\n
//]]\076\n
\074/script\076</unicode> </value>
......
5
\ No newline at end of file
6
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment