1
0
mirror of synced 2025-02-04 14:19:23 +03:00

Merge pull request #1284 from foxel/master

this.autofocus is undefined on destroy inside init
This commit is contained in:
Igor Vaynberg 2013-05-08 22:30:58 -07:00
commit 3d4595c834

View File

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