`$('.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
`$('.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);
this code showing me an error 'hasOwnProperty' of undefined