This is an automated email from the ASF dual-hosted git repository.
carlosrovira 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 dfe3852 jewel-popup: fix an issue with popupview where _popUp can't
exists when reach to that code. This must change to avoid settimeout calls
dfe3852 is described below
commit dfe3852d62eec1af55c8efae265f421fe733be6c
Author: Carlos Rovira <[email protected]>
AuthorDate: Thu Jan 9 13:16:26 2020 +0100
jewel-popup: fix an issue with popupview where _popUp can't exists when
reach to that code. This must change to avoid settimeout calls
---
.../main/royale/org/apache/royale/jewel/beads/views/PopUpView.as | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as
index 099a8e9..6930cd2 100644
---
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as
+++
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/PopUpView.as
@@ -166,12 +166,14 @@ package org.apache.royale.jewel.beads.views
private function prepareForPopUp():void
{
- _popUp.addClass("open");
- COMPILE::JS
- {
+ if(_popUp) {
+ _popUp.addClass("open");
+ COMPILE::JS
+ {
//avoid scroll in html
document.body.classList.add("viewport");
//cancelAnimationFrame(rq);
+ }
}
}
}