lmgonzalves / segment

A JavaScript library to draw and animate SVG path strokes
http://lmgonzalves.github.io/segment
MIT License
1.74k stars 98 forks source link

'hasOwnProperty' of undefined #9

Closed shahjehanali1 closed 8 years ago

shahjehanali1 commented 8 years ago

`$('.service-section').each(function() { var el = $(this); var topDistance = $(this).offset().top - $(window).height() + 200; if ( (topDistance) < scrollTop ) { var myPath = document.getElementById("glob"), segment = new Segment(myPath);

        segment.draw("25%", "75% - 10", 1);
    }
});`

this code showing me an error 'hasOwnProperty' of undefined

lmgonzalves commented 8 years ago

The code seems fine so far. Can you recreate the issue in jsfiddle or codepen, so I can see the whole code and find a solution?