You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/05/04 01:37:48 UTC

git commit: [flex-sdk] [refs/heads/develop] - FLEX-14316 (related) Fixed slice not being assigned to anything. Bigger question is there a better was for UIFTETestFields to work without the code duplication form UITextField?

Updated Branches:
  refs/heads/develop efa80e026 -> 74ab097da


FLEX-14316 (related) Fixed slice not being assigned to anything. Bigger question is there a better was for UIFTETestFields to work without the code duplication form UITextField?


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/74ab097d
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/74ab097d
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/74ab097d

Branch: refs/heads/develop
Commit: 74ab097da5c1f168dee1a293f35bf63b4383696a
Parents: efa80e0
Author: Justin Mclean <jm...@apache.org>
Authored: Sat May 4 09:37:31 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sat May 4 09:37:31 2013 +1000

----------------------------------------------------------------------
 .../projects/spark/src/mx/core/UIFTETextField.as   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/74ab097d/frameworks/projects/spark/src/mx/core/UIFTETextField.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/mx/core/UIFTETextField.as b/frameworks/projects/spark/src/mx/core/UIFTETextField.as
index 60103d2..ad200ee 100644
--- a/frameworks/projects/spark/src/mx/core/UIFTETextField.as
+++ b/frameworks/projects/spark/src/mx/core/UIFTETextField.as
@@ -2480,7 +2480,7 @@ public class UIFTETextField extends FTETextField
         {
             // This should get us into the ballpark.
             var s:String = super.text = originalText;
-                originalText.slice(0,
+                s = originalText.slice(0,
                     Math.floor((w / (textWidth + TEXT_WIDTH_PADDING)) * originalText.length));
 
             while (s.length > 1 && textWidth + TEXT_WIDTH_PADDING > w)