You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2019/12/13 06:28:13 UTC
[royale-asjs] branch develop updated: Minor: Remove repeated code/
if-else block
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 8f54a15 Minor: Remove repeated code/ if-else block
8f54a15 is described below
commit 8f54a15d802d7cf85c79a8cff1500bc85d9eb0ab
Author: greg-dove <gr...@gmail.com>
AuthorDate: Fri Dec 13 19:26:35 2019 +1300
Minor: Remove repeated code/ if-else block
---
.../royale/org/apache/royale/binding/ContainerDataBinding.as | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/ContainerDataBinding.as b/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/ContainerDataBinding.as
index e3331c1..e2c4ffe 100644
--- a/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/ContainerDataBinding.as
+++ b/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/ContainerDataBinding.as
@@ -143,7 +143,7 @@ package org.apache.royale.binding
}
else if (binding.destination is Array)
{
- makeConstantBinding(binding);
+ makeConstantBinding(binding);
}
else {
makeGenericBinding(binding, i, watchers);
@@ -177,14 +177,7 @@ package org.apache.royale.binding
sb.destinationPropertyName = binding.destination[1];
sb.eventName = fieldWatcher.eventNames as String;
sb.sourcePropertyName = binding.source;
- if (isStatic)
- {
- sb.setDocument(fieldWatcher.parentObj);
- }
- else
- {
- sb.setDocument(_strand);
- }
+ sb.setDocument(isStatic ? fieldWatcher.parentObj : _strand);
prepareCreatedBinding(sb as IBinding, binding);
}