1
0
mirror of synced 2024-11-25 22:36:03 +03:00

Only generate result ids when the container has an id

This commit is contained in:
Kevin Brown 2014-10-19 20:49:20 -04:00
parent cdfa0499f4
commit 72ae0da879
7 changed files with 8 additions and 8 deletions

View File

@ -998,7 +998,7 @@ define('select2/data/select',[
data.children = children; data.children = children;
} }
if (data.id) { if (data.id && this.container != null) {
data._resultId = this.generateResultId(this.container, data); data._resultId = this.generateResultId(this.container, data);
} }

View File

@ -998,7 +998,7 @@ define('select2/data/select',[
data.children = children; data.children = children;
} }
if (data.id) { if (data.id && this.container != null) {
data._resultId = this.generateResultId(this.container, data); data._resultId = this.generateResultId(this.container, data);
} }

View File

@ -10536,7 +10536,7 @@ define('select2/data/select',[
data.children = children; data.children = children;
} }
if (data.id) { if (data.id && this.container != null) {
data._resultId = this.generateResultId(this.container, data); data._resultId = this.generateResultId(this.container, data);
} }

File diff suppressed because one or more lines are too long

2
dist/js/select2.js vendored
View File

@ -1427,7 +1427,7 @@ define('select2/data/select',[
data.children = children; data.children = children;
} }
if (data.id) { if (data.id && this.container != null) {
data._resultId = this.generateResultId(this.container, data); data._resultId = this.generateResultId(this.container, data);
} }

File diff suppressed because one or more lines are too long

View File

@ -148,7 +148,7 @@ define([
data.children = children; data.children = children;
} }
if (data.id) { if (data.id && this.container != null) {
data._resultId = this.generateResultId(this.container, data); data._resultId = this.generateResultId(this.container, data);
} }