You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on May 29, 2019. It is now read-only.
Typeahead can not work on IE 8 due to Array.indexof function can not work on ie 8 ("HOT_KEYS.indexOf(evt.which) === -1"); #799
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
'use strict';
if (this == null) {
throw new TypeError();
}
var n, k, t = Object(this),
len = t.length >>> 0;
if (len === 0) {
return -1;
}
n = 0;
if (arguments.length > 1) {
n = Number(arguments[1]);
if (n != n) { // shortcut for verifying if it's NaN
n = 0;
} else if (n != 0 && n != Infinity && n != -Infinity) {
n = (n > 0 || -1) * Math.floor(Math.abs(n));
}
}
if (n >= len) {
return -1;
}
for (k = n >= 0 ? n : Math.max(len - Math.abs(n), 0); k < len; k++) {
if (k in t && t[k] === searchElement) {
return k;
}
}
return -1;
};
}
Activity
hallister commentedon Aug 10, 2013
See #249 which I believe solves all of the IE 8 compatibility issues with Angular, including this one.
pkozlowski-opensource commentedon Aug 12, 2013
We are not going to include code for the ES5 backward compatibility as:
In short: include the mentioned shim in a browser if you need non-es5 browsers support. You can even include it from a CDN: http://cdnjs.com/
Nininea-zz commentedon Sep 24, 2014
Hey @pkozlowski-opensource ,
I have imported es5-shim and es5-sham, but in ie8 type still error for typeahead . can yout help me?