소스 검색

Merge pull request #2925 from PerformanceHorizonGroup/master

Properly off() the events in the "select2" namespace
Kevin Brown 10 년 전
부모
커밋
89b2e3fa81
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()