Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 63b75df

Browse files
committed
Better variable name
1 parent b37f1a2 commit 63b75df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

phantomjs-glyphhanger.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function requestUrl( url ) {
3030
});
3131
}
3232

33-
var combined = new CharacterSet();
33+
var combinedCharacterSet = new CharacterSet();
3434
var promises = [];
3535

3636
/*
@@ -55,7 +55,7 @@ var isCodePoints = args.shift() === "true";
5555
// Whitelist
5656
var whitelist = args.shift();
5757
if( whitelist.length ) {
58-
combined = combined.union( new CharacterSet( whitelist ) );
58+
combinedCharacterSet = combinedCharacterSet.union( new CharacterSet( whitelist ) );
5959
}
6060

6161
// Add URLS
@@ -68,19 +68,19 @@ args.forEach(function( url ) {
6868

6969
Rsvp.all( promises ).then( function( results ) {
7070
results.forEach( function( result ) {
71-
combined.add.apply( combined, result );
71+
combinedCharacterSet.add.apply( combinedCharacterSet, result );
7272
});
7373

7474
if( isVerbose ) {
75-
console.log( pluginName + " output (" + combined.getSize() + "):" );
75+
console.log( pluginName + " output (" + combinedCharacterSet.getSize() + "):" );
7676
}
7777

7878
if( isCodePoints ) {
79-
console.log( combined.toArray().map(function( code ) {
79+
console.log( combinedCharacterSet.toArray().map(function( code ) {
8080
return 'U+' + code.toString(16);
8181
}).join(',') );
8282
} else {
83-
console.log( combined.toArray().map(function( code ) {
83+
console.log( combinedCharacterSet.toArray().map(function( code ) {
8484
return String.fromCharCode( code );
8585
}).join('') );
8686
}

0 commit comments

Comments
 (0)