- Notifications
You must be signed in to change notification settings - Fork20.6k
Commit5c2d087
authored
Event: Don't crash if an element is removed on blur
In Chrome, if an element having a `focusout` handler is blurred byclicking outside of it, it invokes the handler synchronously. Ifthat handler calls `.remove()` on the element, the data is cleared,leaving private data undefined. We're reading a property from thatdata so we need to guard against this.Fixesgh-4417Closesgh-47991 parenta503c69 commit5c2d087
2 files changed
+34
-1
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
558 | 558 |
| |
559 | 559 |
| |
560 | 560 |
| |
561 |
| - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
562 | 568 |
| |
563 | 569 |
| |
564 | 570 |
| |
|
Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2630 | 2630 |
| |
2631 | 2631 |
| |
2632 | 2632 |
| |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
2633 | 2660 |
| |
2634 | 2661 |
| |
2635 | 2662 |
| |
|
0 commit comments
Comments
(0)