This is an automated email from the ASF dual-hosted git repository.
yishayw pushed a commit to branch feature/revert-refactor
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/revert-refactor by
this push:
new 28ff515 Add toggle menu method to mdl menu
28ff515 is described below
commit 28ff51559ec2d2e72f8c627b850054790b8124dc
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Tue Aug 7 13:59:50 2018 +0300
Add toggle menu method to mdl menu
---
.../src/main/royale/org/apache/royale/mdl/Menu.as | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Menu.as
b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Menu.as
index 4c9bbd1..02f929b 100644
---
a/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Menu.as
+++
b/frameworks/projects/MaterialDesignLite/src/main/royale/org/apache/royale/mdl/Menu.as
@@ -229,5 +229,13 @@ package org.apache.royale.mdl
{
return _classList.compute() + super.computeFinalClassNames();
}
+
+ public function toggle():void
+ {
+ COMPILE::JS
+ {
+ element["MaterialMenu"]["toggle"]();
+ }
+ }
}
}