1
0
mirror of synced 2025-02-18 04:53:15 +03:00

Merge pull request #2925 from PerformanceHorizonGroup/master

Properly off() the events in the "select2" namespace
This commit is contained in:
Kevin Brown 2015-01-15 07:52:05 -05:00
commit 89b2e3fa81

View File

@ -871,7 +871,7 @@ the specific language governing permissions and limitations under the Apache Lic
select2.liveRegion.remove(); select2.liveRegion.remove();
select2.dropdown.remove(); select2.dropdown.remove();
element.removeData("select2") element.removeData("select2")
.off("select2"); .off(".select2");
if (!element.is("input[type='hidden']")) { if (!element.is("input[type='hidden']")) {
element element
.show() .show()