You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/04/27 18:09:20 UTC
git commit: [flex-sdk] [refs/heads/develop] - FLEX-33908 Leverage
inEndEdit flag to prevent double events
Repository: flex-sdk
Updated Branches:
refs/heads/develop 0bd21ff96 -> 08ae82cd2
FLEX-33908 Leverage inEndEdit flag to prevent double events
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/08ae82cd
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/08ae82cd
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/08ae82cd
Branch: refs/heads/develop
Commit: 08ae82cd27d632e043f46ecc2a9c2fb0f90eb37c
Parents: 0bd21ff
Author: Alex Harui <ah...@apache.org>
Authored: Mon Apr 27 09:08:48 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Apr 27 09:09:12 2015 -0700
----------------------------------------------------------------------
.../src/spark/components/gridClasses/DataGridEditor.as | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/08ae82cd/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as b/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
index 234c67a..7e02db5 100644
--- a/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
+++ b/frameworks/projects/spark/src/spark/components/gridClasses/DataGridEditor.as
@@ -943,7 +943,7 @@ public class DataGridEditor
*
*/
private function endEdit():Boolean
- {
+ {
// Focus is inside an item renderer
if (!itemEditorInstance && editedItemRenderer)
{
@@ -1373,7 +1373,7 @@ public class DataGridEditor
{
// if the user clicks outside the cell but we can't save the data,
// say, because the data was invalid, then cancel the save.
- if (!dataGrid.endItemEditorSession())
+ if (!inEndEdit && !dataGrid.endItemEditorSession())
{
dataGrid.endItemEditorSession(true);
}
@@ -1564,7 +1564,7 @@ public class DataGridEditor
{
// If we can't save the data, say, because the data was invalid,
// then cancel the save.
- if (!dataGrid.endItemEditorSession())
+ if (!inEndEdit && !dataGrid.endItemEditorSession())
{
dataGrid.endItemEditorSession(true);
}
@@ -1582,7 +1582,7 @@ public class DataGridEditor
{
// If we can't save the data, say, because the data was invalid,
// then cancel the save.
- if (!dataGrid.endItemEditorSession())
+ if (!inEndEdit && !dataGrid.endItemEditorSession())
{
dataGrid.endItemEditorSession(true);
}
@@ -1614,7 +1614,7 @@ public class DataGridEditor
{
// If we can't save the data, say, because the data was invalid,
// then cancel the save.
- if (!dataGrid.endItemEditorSession())
+ if (!inEndEdit && !dataGrid.endItemEditorSession())
{
dataGrid.endItemEditorSession(true);
}
@@ -1799,7 +1799,7 @@ public class DataGridEditor
// If we can't save the data, say, because the data was invalid,
// then cancel the save.
- if (!dataGrid.endItemEditorSession())
+ if (!inEndEdit && !dataGrid.endItemEditorSession())
{
dataGrid.endItemEditorSession(true);
}