I am seeing that "duration" property of Pulsate isn't being applied.  It
seems only to use the default init'ed value of 2.  Looking at the code it
appears that the __fadeEffects array is only updated at construction time. 
It looks like the refined property needs an apply method that updates the
array.  I'm not sure if I'm misunderstanding of the way of using it, or if
it's worth me filing a bug report.  From the original source:

  /*
   
*****************************************************************************
       CONSTRUCTOR
   
*****************************************************************************
  */

  /**
   * @param element {Object} The DOM element
   */
  construct : function(element)
  {
    this.base(arguments, element);

    var duration = this.getDuration() / 6;
    var counter = 0;

    this.__fadeEffects = [
      new qx.fx.effect.core.Fade(element),
      new qx.fx.effect.core.Fade(element),
      new qx.fx.effect.core.Fade(element),
      new qx.fx.effect.core.Fade(element),
      new qx.fx.effect.core.Fade(element),
      new qx.fx.effect.core.Fade(element)
    ];

    for (var i=0, l=this.__fadeEffects.length; i<l; i++)
    {
      this.__fadeEffects[i].set({
        duration : duration,
        to : ( (counter % 2) != 0) ? 1 : 0,
        from : ( (counter % 2) != 0) ? 0 : 1,
        transition: "sinodial",
        modifyDisplay : false
      });
      counter++;
    }

  },


  /*
  
*****************************************************************************
      PROPERTIES
  
*****************************************************************************
   */

  properties :
  {

    /**
     * Number of seconds the effect should run.
     */
    duration :
    {
      init : 2,
      refine : true
    }

  },

>From the property definition I don't see any update of the __fadeEffects
array values.  Continued kudos on a great API!
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Duration-assignment-not-being-applied-for-Pulsate-tp5338354p5338354.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to