You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/08/18 12:33:28 UTC
git commit: [flex-asjs] [refs/heads/develop] - This should work
better with MXML
Repository: flex-asjs
Updated Branches:
refs/heads/develop 8eaaeffb0 -> 89145f188
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/develop
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;
}
}
}