Skip to content

Commit

Permalink
Rename constant value
Browse files Browse the repository at this point in the history
  • Loading branch information
cocopon committed Jan 19, 2015
1 parent 04b0e31 commit 11d4f78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aislice.jsx
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.


var config = {
var CONFIG = {
resolutions: [
{scale: 100, postfix: ''},
{scale: 200, postfix: '@2x'},
Expand Down Expand Up @@ -211,7 +211,7 @@ var main = function() {
folder.create();
}

util.array.forEach(config.resolutions, function(resolution) {
util.array.forEach(CONFIG.resolutions, function(resolution) {
var fileName = util.path.getFileName(relPath) + resolution.postfix;
var file = new File(util.path.join([folder.absoluteURI, fileName]));

Expand All @@ -220,7 +220,7 @@ var main = function() {
});

// Batch undo changing artboardRect for a reason of performance issue
var totalUndoes = slices.length * config.resolutions.length;
var totalUndoes = slices.length * CONFIG.resolutions.length;
var i;
for (i = 0; i < totalUndoes; i++) {
app.undo();
Expand Down

0 comments on commit 11d4f78

Please sign in to comment.