Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #685 from tschneidereit/master
Browse files Browse the repository at this point in the history
Fixes linter errors
  • Loading branch information
tschneidereit committed Sep 17, 2013
2 parents 7d3469f + dbb6eee commit 8ac4fc3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/flash/text/TextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ var TextFieldDefinition = (function () {
var y = state.y;
var runs = state.line;
for (var i = runs.length; i--;) {
var run = runs[i];
run.y = y;
runs[i].y = y;
}
var align = (state.currentFormat.align || '').toLowerCase();
if (state.combinedAlign === null) {
Expand All @@ -314,8 +313,7 @@ var TextFieldDefinition = (function () {
offset >>= 1;
}
for (i = runs.length; i--;) {
run = runs[i];
run.x += offset;
runs[i].x += offset;
}
}
runs.length = 0;
Expand Down Expand Up @@ -580,7 +578,6 @@ var TextFieldDefinition = (function () {
if (align !== 'mixed') {
switch (autoSize) {
case 'left':
default:
break;
case 'center':
diffX = (targetWidth - width) / 2;
Expand Down

0 comments on commit 8ac4fc3

Please sign in to comment.