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/05 01:57:23 UTC

[1/2] git commit: [flex-sdk] [refs/heads/develop] - Make includeTransients logic clear and default to false.

Updated Branches:
  refs/heads/develop 1ff125fcf -> 34ba96e5e


Make includeTransients logic clear and default to false.


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

Branch: refs/heads/develop
Commit: 6559750e0520addaa36ad46c67e1fab21d81d94d
Parents: 1ff125f
Author: Justin Mclean <jm...@apache.org>
Authored: Sun May 5 09:50:45 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sun May 5 09:50:45 2013 +1000

----------------------------------------------------------------------
 .../projects/rpc/src/mx/utils/RPCObjectUtil.as     |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/6559750e/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as b/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
index 52c23da..8f82bd9 100644
--- a/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
+++ b/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
@@ -273,7 +273,7 @@ public class RPCObjectUtil
                 else
                 {
                     var classInfo:Object = getClassInfo(value, exclude,
-                        { includeReadOnly: true, uris: namespaceURIs });
+                        { includeReadOnly: true, uris: namespaceURIs, includeTransient: false });
                         
                     var properties:Array = classInfo.properties;
                     
@@ -372,9 +372,7 @@ public class RPCObjectUtil
      */
     private static function newline(str:String, length:int = 0):String
     {
-        var result:String = str;
-        result += "\n";
-        
+        var result:String = str + "\n";      
         for (var i:int = 0; i < length; i++)
         {
             result += " ";
@@ -540,6 +538,10 @@ public class RPCObjectUtil
             var uris:Array = options.uris;
             var uri:String;
             var qName:QName;
+			var includeTransients:Boolean;
+			
+			includeTransients = options.hasOwnProperty(includeTransient) && options.includeTransient;
+			
             for (i = 0; i < length; i++)
             {
                 prop = properties[i];
@@ -549,7 +551,7 @@ public class RPCObjectUtil
                 if (excludeObject[p] == 1)
                     continue;
                     
-                if (!options.includeTransient && internalHasMetadata(metadataInfo, p, "Transient"))
+                if (!includeTransients && internalHasMetadata(metadataInfo, p, "Transient"))
                     continue;
                 
                 if (uris != null)


[2/2] git commit: [flex-sdk] [refs/heads/develop] - fix hasOwnProperty call

Posted by jm...@apache.org.
fix hasOwnProperty call


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

Branch: refs/heads/develop
Commit: 34ba96e5e4d41ff8be359b6217a32d45bec8ad2b
Parents: 6559750
Author: Justin Mclean <jm...@apache.org>
Authored: Sun May 5 09:56:09 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sun May 5 09:56:09 2013 +1000

----------------------------------------------------------------------
 .../projects/rpc/src/mx/utils/RPCObjectUtil.as     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/34ba96e5/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as b/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
index 8f82bd9..bc75dba 100644
--- a/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
+++ b/frameworks/projects/rpc/src/mx/utils/RPCObjectUtil.as
@@ -540,7 +540,7 @@ public class RPCObjectUtil
             var qName:QName;
 			var includeTransients:Boolean;
 			
-			includeTransients = options.hasOwnProperty(includeTransient) && options.includeTransient;
+			includeTransients = options.hasOwnProperty("includeTransient") && options.includeTransient;
 			
             for (i = 0; i < length; i++)
             {