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

(merge from 0.4 branch) References #2366. Converting more tests to use dojo.addOnLoad()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/widget/test_Menu2_Around_Position.html

    r6234 r7388  
    8888                menu.open(e.currentTarget, null, e.currentTarget); 
    8989        } 
    90         dojo.addOnLoad(function(){menu=dojo.widget.byId("test3");}); 
    91         dojo.event.connect(dojo.byId("test0"), "onclick", testAroundPlace); 
    92         dojo.event.connect(dojo.byId("test0IE"), "onclick", testAroundPlace); 
    93          
    94         dojo.event.connect(dojo.byId("test1"), "onclick", testAroundPlace); 
    95         dojo.event.connect(dojo.byId("test2"), "onclick", testAroundPlace); 
    96         dojo.event.connect(dojo.byId("test3"), "onclick", testAroundPlace); 
     90        dojo.addOnLoad(function(){ 
     91                menu=dojo.widget.byId("test3"); 
     92                dojo.event.connect(dojo.byId("test0"), "onclick", testAroundPlace); 
     93                dojo.event.connect(dojo.byId("test0IE"), "onclick", testAroundPlace); 
     94                 
     95                dojo.event.connect(dojo.byId("test1"), "onclick", testAroundPlace); 
     96                dojo.event.connect(dojo.byId("test2"), "onclick", testAroundPlace); 
     97                dojo.event.connect(dojo.byId("test3"), "onclick", testAroundPlace); 
     98        }); 
    9799</script> 
    98100</div>