Skip to content

Commit

Permalink
Fixed an issue that transpiled + (++v) + to +++v+ after code mini…
Browse files Browse the repository at this point in the history
…fication
  • Loading branch information
cheton committed Nov 16, 2017
1 parent 18131a4 commit 03a5e96
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions dist/infinite-tree.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! infinite-tree v1.13.1 | (c) 2017 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/infinite-tree */
/*! infinite-tree v1.13.2 | (c) 2017 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/infinite-tree */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -3301,7 +3301,8 @@ var getIEVersion = exports.getIEVersion = function getIEVersion() {

var v = 3;
do {
div.innerHTML = '<!--[if gt IE ' + ++v + ']><i></i><![endif]-->';
++v;
div.innerHTML = '<!--[if gt IE ' + v + ']><i></i><![endif]-->';
} while (all[0]);

return v > 4 ? v : document.documentMode;
Expand Down
4 changes: 2 additions & 2 deletions dist/infinite-tree.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/examples.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "infinite-tree",
"version": "1.13.1",
"version": "1.13.2",
"description": "A browser-ready tree library that can efficiently display a large amount of data using infinite scrolling.",
"homepage": "https://github.com/cheton/infinite-tree",
"main": "lib/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export const getIEVersion = () => {

let v = 3;
do {
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->';
++v;
div.innerHTML = '<!--[if gt IE ' + v + ']><i></i><![endif]-->';
} while (all[0]);

return v > 4 ? v : document.documentMode;
Expand Down

0 comments on commit 03a5e96

Please sign in to comment.