You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ca...@apache.org on 2014/02/07 14:41:14 UTC
git commit: [flex-sdk] [refs/heads/develop] - FLEX-34053 -
MaskedTextInput - fix a bug introduced in latest commit on insertion near
separator, remove unused mx_internal namespace, and format code
Updated Branches:
refs/heads/develop 8658cf695 -> e516a06dd
FLEX-34053 - MaskedTextInput - fix a bug introduced in latest commit on insertion near separator, remove unused mx_internal namespace, and format code
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/e516a06d
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/e516a06d
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/e516a06d
Branch: refs/heads/develop
Commit: e516a06ddfa72a664c2708e5051c6c30d2de3873
Parents: 8658cf6
Author: Carlos Rovira <ca...@apache.org>
Authored: Fri Feb 7 14:41:00 2014 +0100
Committer: Carlos Rovira <ca...@apache.org>
Committed: Fri Feb 7 14:41:00 2014 +0100
----------------------------------------------------------------------
.../experimental/src/spark/components/MaskedTextInput.as | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/e516a06d/frameworks/projects/experimental/src/spark/components/MaskedTextInput.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/experimental/src/spark/components/MaskedTextInput.as b/frameworks/projects/experimental/src/spark/components/MaskedTextInput.as
index be738ef..2bf3e94 100644
--- a/frameworks/projects/experimental/src/spark/components/MaskedTextInput.as
+++ b/frameworks/projects/experimental/src/spark/components/MaskedTextInput.as
@@ -27,14 +27,12 @@ package spark.components {
import flashx.textLayout.operations.InsertTextOperation;
import flashx.textLayout.tlf_internal;
- import mx.core.mx_internal;
import mx.utils.StringUtil;
import spark.components.RichEditableText;
import spark.components.TextInput;
import spark.events.TextOperationEvent;
- use namespace mx_internal;
use namespace tlf_internal;
/**
@@ -378,7 +376,7 @@ package spark.components {
if (insertOp.deleteSelectionState != null && !insertOp.deleteSelectionState.tlf_internal::selectionManagerOperationState) {
//OVERRIDING INSERT
if (isSeparator(ac)) {
- outputText = super.text.substring(0, insertOp.originalSelectionState.anchorPosition + 1) + insertOp.text + super.text.substring(insertOp.originalSelectionState.activePosition + 2);
+ outputText = super.text.substring(0, insertOp.originalSelectionState.anchorPosition + 1) + insertOp.text + super.text.substring(insertOp.originalSelectionState.activePosition + 1);
} else {
outputText = super.text.substring(0, insertOp.originalSelectionState.anchorPosition) + insertOp.text + super.text.substring(insertOp.originalSelectionState.activePosition);
}
@@ -448,8 +446,7 @@ package spark.components {
an = ac = selectionActivePosition - offset;
}
//copy
- else if(event.operation is CopyOperation)
- {
+ else if (event.operation is CopyOperation) {
return; // avoid to remove all text on copy operation
}