Skip to content

Commit

Permalink
Merge pull request #2 from imarc/uglify-fix
Browse files Browse the repository at this point in the history
Removed uncommon syntax for post-processors (uglifyjs-webpack-plugin)
  • Loading branch information
jeanlescure authored Dec 29, 2017
2 parents 7bc7354 + a0a6545 commit 7ba9559
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/short-unique-id.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions lib/short-unique-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@

/* eslint-disable */
this.dictIndex = this._i = 0;
for (this.rangeType in self.DICT_RANGES) {
self.dictRange = self.DICT_RANGES[self.rangeType];
var rangeType;
for (rangeType in self.DICT_RANGES) {
self.dictRange = self.DICT_RANGES[rangeType];
self.lowerBound = self.dictRange[0], self.upperBound = self.dictRange[1];
for (this.dictIndex = this._i = this.lowerBound; this.lowerBound <= this.upperBound ? this._i < this.upperBound : this._i > this.upperBound; this.dictIndex = this.lowerBound <= this.upperBound ? ++this._i : --this._i) {
self.dict.push(String.fromCharCode(self.dictIndex));
Expand Down
5 changes: 3 additions & 2 deletions src/short-unique-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@

/* eslint-disable */
this.dictIndex = this._i = 0;
for (this.rangeType in self.DICT_RANGES) {
self.dictRange = self.DICT_RANGES[self.rangeType];
let rangeType;
for (rangeType in self.DICT_RANGES) {
self.dictRange = self.DICT_RANGES[rangeType];
self.lowerBound = self.dictRange[0], self.upperBound = self.dictRange[1];
for (this.dictIndex = this._i = this.lowerBound; this.lowerBound <= this.upperBound ? this._i < this.upperBound : this._i > this.upperBound; this.dictIndex = this.lowerBound <= this.upperBound ? ++this._i : --this._i) {
self.dict.push(String.fromCharCode(self.dictIndex));
Expand Down

0 comments on commit 7ba9559

Please sign in to comment.