Repository: flex-asjs
Updated Branches:
  refs/heads/develop dcd748c8c -> 6e55c55c7


try this price if we can't get other price data


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

Branch: refs/heads/develop
Commit: 6e55c55c716a79d09b62e63d58110b39037d5fcf
Parents: bf706bc
Author: Alex Harui <aha...@apache.org>
Authored: Wed Aug 9 10:18:58 2017 -0700
Committer: Alex Harui <aha...@apache.org>
Committed: Wed Aug 9 10:19:13 2017 -0700

----------------------------------------------------------------------
 examples/flexjs/DataBindingExample/src/main/flex/models/MyModel.as | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6e55c55c/examples/flexjs/DataBindingExample/src/main/flex/models/MyModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExample/src/main/flex/models/MyModel.as 
b/examples/flexjs/DataBindingExample/src/main/flex/models/MyModel.as
index 5a16d02..0c05d63 100644
--- a/examples/flexjs/DataBindingExample/src/main/flex/models/MyModel.as
+++ b/examples/flexjs/DataBindingExample/src/main/flex/models/MyModel.as
@@ -58,6 +58,8 @@ package models
                        {
                                if (_requestedField == "Ask")
                                        s = _responseData["Bid"];
+                if (s == null)
+                    s = _responseData["LastTradePriceOnly"];
                        }
                        return s;
                }

Reply via email to