Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default [FIXED][3.x] Ext.lib.Easing - bounceIn, bounceOut scope

    [FIXED][3.x] Ext.lib.Easing - bounceIn, bounceOut scope


    Ext.lib.Easing for bounceIn and bounceOut points to this.bounceOut/this.bounceIn, but those aren't scoped correctly it seems.



    Code:
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
        <title>Effects test page</title>
    
        <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
    
    
    <style type="text/css">
    #demo {
        background:#ccc;
        height:300px;
        width:300px;
    }
    </style>
    
     	<script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="../../ext-all.js"></script>
    
        <script type="text/javascript">
    
    Ext.onReady(function(){
        e = Ext.get('demo');
        e.setWidth(500, {
            duration: 2,
            easing: 'bounceIn'
        });
    });
        </script>
    
    </head>
    <body>
    <div id="demo">Demo</div>
    </body>
    </html>
    Code:
            Ext.apply(Ext.lib.Easing, {
                bounceIn: function(t, b, c, d){
                    return c - this.bounceOut(d - t, 0, c, d) + b;
                },
                bounceOut: function(t, b, c, d){
                    ... 
                    return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
                },
                bounceBoth: function(t, b, c, d){
                    return (t < d / 2) ? this.bounceIn...
                }
            });
        })();

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,895
    Vote Rating
    623
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Fixed in SVN, thanks.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1