We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e9e65f commit cd0adbeCopy full SHA for cd0adbe
1 file changed
select2.js
@@ -118,8 +118,8 @@ the specific language governing permissions and limitations under the Apache Lic
118
if (a === b) return true;
119
if (a === undefined || b === undefined) return false;
120
if (a === null || b === null) return false;
121
- if (a.constructor === String) return a === b+'';
122
- if (b.constructor === String) return b === a+'';
+ if (a.constructor === String) return a+'' === b+''; // IE requires a+'' instead of just a
+ if (b.constructor === String) return b+'' === a+''; // IE requires b+'' instead of just b
123
return false;
124
}
125
0 commit comments