Show
Ignore:
Timestamp:
04/27/08 11:26:38 (7 months ago)
Author:
dante
Message:

refs #5603 again - all the fisheye's can be made with .instantiate in this example.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/widget/tests/test_FisheyeLite.html

    r13420 r13421  
    7272                        dojo.query("li.bounce").instantiate(dojox.widget.FisheyeLite,{}); 
    7373 
    74                         dojo.query("span.line").forEach(function(n){ 
     74                        dojo.query("span.line") 
     75                                .instantiate(dojox.widget.FisheyeLite,{ 
    7576                                // make a widget from each of the lines in the lineHeightTest 
    76                                 new dojox.widget.FisheyeLite({ 
    7777                                        properties: { 
    7878                                                fontSize:1.75 
     
    8080                                        easeOut: dojox.fx.easing.backInOut, 
    8181                                        durationOut: 500 
    82                                 },n); 
    83                         }).connect("onclick",function(e){ 
     82                                }) 
     83                                .connect("onclick",function(e){ 
    8484                                // you can still access the onclick of the real node 
    85                                 alert(e.target.innerHTML); 
     85                                        alert(e.target.innerHTML); 
     86                                }) 
     87                        ; 
     88 
     89                        dojo.query("a").instantiate(dojox.widget.FisheyeLite,{ 
     90                                properties:{ 
     91                                        fontSize:1.15, 
     92                                        letterSpacing:2.85 
     93                                } 
     94                        }) 
     95                        // stop anchors from doing _anything_    
     96                        .connect("onclick",dojo,"stopEvent"); 
     97 
     98                        dojo.query(".imgBounce").instantiate(dojox.widget.FisheyeLite,{ 
     99                                // all the images need a width and a height (well, not need, 
     100                                // but to scale you do)                          
     101                                properties: { 
     102                                        height:1.75, 
     103                                        width:1.75 
     104                                } 
    86105                        }); 
    87  
    88                         dojo.query("a").forEach(function(n){ 
    89                                 // all the anchorhs get a little letter spacing love 
    90                                 new dojox.widget.FisheyeLite({ 
    91                                         properties:{ 
    92                                                 fontSize:1.15, 
    93                                                 letterSpacing:2.85 
    94                                         } 
    95                                 },n); 
    96                         // stop anchors from doing _anything_    
    97                         }).connect("onclick",dojo,"stopEvent"); 
    98  
    99                         dojo.query(".imgBounce").forEach(function(n){ 
    100                                 // all the images need a width and a height (well, not need, 
    101                                 // but to scale you do) 
    102                                 new dojox.widget.FisheyeLite({ 
    103                                         properties: { 
    104                                                 height:1.75, 
    105                                                 width:1.75 
    106                                         } 
    107                                 },n); 
    108                         }); 
     106                         
    109107 
    110108                        //