On 4/10/06, Daniel Elmore <[EMAIL PROTECTED]> wrote:
> Could someone please tell me why this wouldn't be working???
>
> new Effect.Squish('APhoto', {duration:3.0} );
>
>

Because your extra parameter are not taken into account. If you look
at the effect.js code, you will see that Effect.Squish does not extend
the parameters like it is done with Effect.SlideUp for example.

Thinks you can do :
1. do your own version of Effect.Squish
2. wait for a fix

For the first solution, I suggest :
--------------------------------------
Effect.Squish = function(element) {
  return new Effect.Scale(element, window.opera ? 1 : 0,
    Object.extend({ restoreAfterFinish: true,
      beforeSetup: function(effect) { with(Element) {
        makeClipping(effect.element); }},
      afterFinishInternal: function(effect) { with(Element) {
        hide(effect.element);
        undoClipping(effect.element); }}
    }, arguments[1] || {})
  );
}
--------------------------------------

Hope this helps,
Nicolas
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to