1
0
mirror of synced 2024-12-02 01:26:02 +03:00

fix #1396 - fix destroy() when double initting

This commit is contained in:
Igor Vaynberg 2013-06-23 15:21:16 -07:00
parent ef136731d4
commit 4969dcb42c

View File

@ -652,7 +652,7 @@ the specific language governing permissions and limitations under the Apache Lic
// destroy if called on an existing component // destroy if called on an existing component
if (opts.element.data("select2") !== undefined && if (opts.element.data("select2") !== undefined &&
opts.element.data("select2") !== null) { opts.element.data("select2") !== null) {
this.destroy(); opts.element.data("select2").destroy();
} }
this.container = this.createContainer(); this.container = this.createContainer();