You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pi...@apache.org on 2017/08/19 12:42:38 UTC
[10/15] git commit: [flex-asjs] [refs/heads/feature/amf] - This
should work better with MXML
This should work better with MXML
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/89145f18
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/89145f18
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/89145f18
Branch: refs/heads/feature/amf
Commit: 89145f1889b7389ca8f241ee98b46e753b63036d
Parents: 8eaaeff
Author: Harbs <ha...@in-tools.com>
Authored: Fri Aug 18 15:33:23 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Fri Aug 18 15:33:23 2017 +0300
----------------------------------------------------------------------
.../src/main/flex/org/apache/flex/mdl/CheckBox.as | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/89145f18/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
index 217edf5..58966f5 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/CheckBox.as
@@ -245,10 +245,16 @@ package org.apache.flex.mdl
COMPILE::JS
{
- if(value)
- element['MaterialCheckbox'].check();
+ var instance:Object = element['MaterialCheckbox'];
+ if(instance)
+ {
+ if(value)
+ instance["check"]();
+ else
+ instance["uncheck"]();
+ }
else
- element['MaterialCheckbox'].uncheck();
+ input.checked = value;
}
}
}