flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject git commit: [flex-sdk] [refs/heads/release4.14.0] - FLEX-34710: s:DataGrid doubleClickMode was throwing an error when assigned a value in MXML. This was due to the grid part not being present yet. Modified the setter to use setGridProperty which allows
Date Fri, 02 Jan 2015 09:26:36 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/release4.14.0 3d97dec4f -> dd4faff24


FLEX-34710: s:DataGrid doubleClickMode was throwing an error when assigned a value in MXML.
 This was due to the grid part not being present yet.  Modified the setter to use setGridProperty
which allows delayed property setting if needed.


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

Branch: refs/heads/release4.14.0
Commit: dd4faff24cdc6f305572e3a3605e66c686215aba
Parents: 3d97dec
Author: Mark Kessler <KesslerConsulting@gmail.com>
Authored: Mon Dec 29 21:08:55 2014 -0500
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Fri Jan 2 10:26:10 2015 +0100

----------------------------------------------------------------------
 frameworks/projects/spark/src/spark/components/DataGrid.as | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/dd4faff2/frameworks/projects/spark/src/spark/components/DataGrid.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spark/src/spark/components/DataGrid.as b/frameworks/projects/spark/src/spark/components/DataGrid.as
index 8db0d85..9b17f60 100644
--- a/frameworks/projects/spark/src/spark/components/DataGrid.as
+++ b/frameworks/projects/spark/src/spark/components/DataGrid.as
@@ -1578,7 +1578,6 @@ public class DataGrid extends SkinnableContainerBase
     *  @playerversion AIR 3.4
     *  @productversion Flex 4.10
     */
-
     public function get doubleClickMode():String
     {
         return grid.doubleClickMode;
@@ -1589,13 +1588,10 @@ public class DataGrid extends SkinnableContainerBase
     */
     public function set doubleClickMode(newValue:String):void
     {
-        if (grid.doubleClickMode == newValue)
+        if (setGridProperty("doubleClickMode", newValue))
         {
-           return;
+            dispatchChangeEvent("doubleClickModeChanged");
         }
-
-        grid.doubleClickMode = newValue;
-        dispatchChangeEvent("doubleClickModeChanged");
     }
 
 


Mime
View raw message