1
0
mirror of synced 2024-11-26 14:56:07 +03:00

fix duplicate values in IE. fix #840

This commit is contained in:
Igor Vaynberg 2013-02-20 19:05:54 -08:00
parent 8e9e65f864
commit cd0adbe913

View File

@ -118,8 +118,8 @@ the specific language governing permissions and limitations under the Apache Lic
if (a === b) return true; if (a === b) return true;
if (a === undefined || b === undefined) return false; if (a === undefined || b === undefined) return false;
if (a === null || b === null) return false; if (a === null || b === null) return false;
if (a.constructor === String) return a === b+''; if (a.constructor === String) return a+'' === b+''; // IE requires a+'' instead of just a
if (b.constructor === String) return b === a+''; if (b.constructor === String) return b+'' === a+''; // IE requires b+'' instead of just b
return false; return false;
} }