Is fusionSlider.panelPositions an array or a string?
If it's an array, then using indexOf() on it is wrong.
If it's a string then I can't work out what it that statement is
intended to achieve ... but indexOf() should take a string as its
input, not a number!

On May 29, 2:41 am, Keri Henare <[EMAIL PROTECTED]> wrote:
> Opera 9.27 throws up this error:
>
> Event thread: click
> Error:
> name: TypeError
> message: Statement on line 80: Type mismatch (usually a non-object
> value used where an object is required)
> Backtrace:
>   Line 81 of linked script 
> file://localhost/Users/kerihenare/Sites/adhub2/skin/js/functions.js
>     $(this).animate({left :
> (fusionSlider.panelPositions.indexOf(position) - 1) * $
> (fusionSlider._slider).width()}, "300");
>
> CODE:
>     panelArrange : function(x) {
>       $(fusionSlider._slider).children(fusionSlider._panels).show();
>       x = x + 1;
>       if (x == fusionSlider.panelPositions.length) x = 0;
>       $(fusionSlider._slider).children(fusionSlider._panels + ':eq('+
> x +')').hide();
>       $(fusionSlider._slider).children(fusionSlider._panels).each(
>         function(i) {
>           var position = i - 1;
>           if (position < 0) position =
> fusionSlider.panelPositions.length - 1;
>           $(this).animate({ left:
> (fusionSlider.panelPositions.indexOf(position) - 1) * $
> (fusionSlider._slider).width()}, '300'); // <-- LINE 80
>         }
>       );
>     }

Reply via email to