0 Replies Latest reply on Nov 25, 2015 10:22 PM by Departure

    .position().top not a function!?

    Departure Level 1

      Hi All,

       

      I used this piece of code repeatedly in old projects but recently i get an error.

       

      (Code placed in CompositionReady inside a window resize function)

      $("body").css({width:$(window).width(),height:Array[Array.length-1].position().top+pHeight });

       

      Error:

      Uncaught TypeError: homeArray[(homeArray.length - 1)].position is not a function