1
0
mirror of synced 2024-11-25 14:26:03 +03:00

Properly off() the events in the "select2" namespace

the dot, denoting a namespace and not an event name, was missing
This commit is contained in:
gkostov 2015-01-15 14:23:34 +02:00
parent da4789c61b
commit 19c0d3c0b5

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()