You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having used it recently in a little example, we were having problems with 'home button' not working fine. We checked the code and the problem is this function:
As you can see, there is a DOM selector like $("section:last").data("scene")), and in our web page we had another, unrelated 'section' tag (without any 'scene' attribute), so that broke the 'if' when returning undefined.
IMO it should be enough to just replace it with $("section[data-scene]:last").data('scene') to fix it.
Hi @jakobzhao, thx for your nice library!
Having used it recently in a little example, we were having problems with 'home button' not working fine. We checked the code and the problem is this function:
As you can see, there is a DOM selector like
$("section:last").data("scene"))
, and in our web page we had another, unrelated 'section' tag (without any 'scene' attribute), so that broke the 'if' when returning undefined.IMO it should be enough to just replace it with
$("section[data-scene]:last").data('scene')
to fix it.Thx!
PD We were using https://cdn.rawgit.com/jakobzhao/storymap/master/dist/storymap.2.4.js
The text was updated successfully, but these errors were encountered: