xl-infinite-tree
Version:
A browser-ready tree library that can efficiently display a large amount of data using infinite scrolling.
16 lines (13 loc) • 445 B
JavaScript
;
exports.__esModule = true;
// https://gist.github.com/padolsey/527683#comment-786682
var getIEVersion = exports.getIEVersion = function getIEVersion() {
var div = document.createElement('div');
var all = div.getElementsByTagName('i') || [];
var v = 3;
do {
++v;
div.innerHTML = '<!--[if gt IE ' + v + ']><i></i><![endif]-->';
} while (all[0]);
return v > 4 ? v : document.documentMode;
};