Commit f1e8647
committed
Clone the options for group elements
This will always clone the options that are passed in when
initializing Select2 on multiple objects (like `$("select")`) so
it doesn't always assume that the configuration is the exact same.
This prevents any reference-based tricks for modifying the data
within Select2, but some would look at that as an upside.1 parent 12f7ed9 commit f1e8647
7 files changed
Lines changed: 32 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4065 | 4065 | | |
4066 | 4066 | | |
4067 | 4067 | | |
4068 | | - | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
4069 | 4071 | | |
| 4072 | + | |
| 4073 | + | |
4070 | 4074 | | |
4071 | 4075 | | |
4072 | 4076 | | |
4073 | 4077 | | |
4074 | | - | |
| 4078 | + | |
4075 | 4079 | | |
4076 | 4080 | | |
4077 | 4081 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4003 | 4003 | | |
4004 | 4004 | | |
4005 | 4005 | | |
4006 | | - | |
| 4006 | + | |
| 4007 | + | |
| 4008 | + | |
4007 | 4009 | | |
| 4010 | + | |
| 4011 | + | |
4008 | 4012 | | |
4009 | 4013 | | |
4010 | 4014 | | |
4011 | 4015 | | |
4012 | | - | |
| 4016 | + | |
4013 | 4017 | | |
4014 | 4018 | | |
4015 | 4019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13600 | 13600 | | |
13601 | 13601 | | |
13602 | 13602 | | |
13603 | | - | |
| 13603 | + | |
| 13604 | + | |
| 13605 | + | |
13604 | 13606 | | |
| 13607 | + | |
| 13608 | + | |
13605 | 13609 | | |
13606 | 13610 | | |
13607 | 13611 | | |
13608 | 13612 | | |
13609 | | - | |
| 13613 | + | |
13610 | 13614 | | |
13611 | 13615 | | |
13612 | 13616 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4431 | 4431 | | |
4432 | 4432 | | |
4433 | 4433 | | |
4434 | | - | |
| 4434 | + | |
| 4435 | + | |
| 4436 | + | |
4435 | 4437 | | |
| 4438 | + | |
| 4439 | + | |
4436 | 4440 | | |
4437 | 4441 | | |
4438 | 4442 | | |
4439 | 4443 | | |
4440 | | - | |
| 4444 | + | |
4441 | 4445 | | |
4442 | 4446 | | |
4443 | 4447 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments