Show
Ignore:
Timestamp:
02/20/07 17:54:40 (23 months ago)
Author:
jburke
Message:

References #2366. Converting more tests to use dojo.addOnLoad()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.4/tests/widget/test_HslColorPicker.xhtml

    r2648 r7386  
    1111                        dojo.require("dojo.widget.svg.HslColorPicker"); 
    1212                        dojo.require("dojo.event.topic"); 
    13                         dojo.event.topic.subscribe("/colorPicker/setStoredColor", window, "setColorSwatch"); 
    14                         function setColorSwatch(evt) { 
    15                                 document.getElementById("colorSwatch").style.backgroundColor = dojo.widget.getWidgetById("colorPicker").getStoredColor(); 
    16                         } 
     13                        dojo.addOnLoad(function(){ 
     14                                dojo.event.topic.subscribe("/colorPicker/setStoredColor", window, "setColorSwatch"); 
     15                                function setColorSwatch(evt) { 
     16                                        document.getElementById("colorSwatch").style.backgroundColor = dojo.widget.getWidgetById("colorPicker").getStoredColor(); 
     17                                } 
     18                        }); 
    1719                //]]></script> 
    1820        </head>