-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this._times.length
is undefined
in Map.Drag.js
#4311
Comments
Yes, the only case where this should happen is when the I wonder if prosthetic-hand could be used to write a reproducible test case. Otherwise it can be hard and tedious to debug. Maybe we can just work around the problem by setting |
There should be no side effects of this though, so I would add it. |
If @mourner thinks it's safe to add it, then I'll second. The change seems quite trivial, so I'll let a newbie commit the changes (wink wink nudge nudge, @yourfirstpr @errebenito @Charlotteis !).
|
@IvanSanchez I'm at work currently and therefore unable to take a look at this issue, but it seems simple enough, so if nobody else has claimed it by the time I get home, count me in. |
@errebenito Let's give @yourfirstpr a bit of time to tweet about it and see if anyone else wants to jump in. |
@IvanSanchez Sure. It's gonna be a long day for me at work either way, so there's even the possibility I won't want to look at more source code by the time I finish my shift here ;) |
I see @LucasMouraDeOliveira has opened #4324, |
I have just got report from my client that
this._times.length
isundefined
in Map.Drag.js in_onDragEnd
on linenoInertia = !options.inertia || this._times.length < 2;
. I could not reproduce the error so far. The error was triggered on IPad, iOS 9.2.1 in WKWebview.options.inertia
is kept at default, i.e.true
.My only explanation to this error is that in rare situations the
_onDragEnd
is called without_onDragStart
which then means that thisis never called and
this._times
remainsundefined
.What do you think?
The text was updated successfully, but these errors were encountered: