Преглед на файлове

Merge pull request #1284 from foxel/master

this.autofocus is undefined on destroy inside init
Igor Vaynberg преди 12 години
родител
ревизия
3d4595c834
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -756,7 +756,7 @@ the specific language governing permissions and limitations under the Apache Lic
                     .removeData("select2")
                     .unbind(".select2")
                     .attr({"tabindex": this.elementTabIndex})
-                    .prop("autofocus", this.autofocus)
+                    .prop("autofocus", this.autofocus||false)
                     .show();
             }
         },