浏览代码

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

the dot, denoting a namespace and not an event name, was missing
gkostov 10 年之前
父节点
当前提交
19c0d3c0b5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

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