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 93a340b jewel-textprompt: fix swf again 3
93a340b is described below
commit 93a340b10ecfc78d26ad7d020a052b1d99a6c4ad
Author: Carlos Rovira <[email protected]>
AuthorDate: Wed Mar 4 23:51:44 2020 +0100
jewel-textprompt: fix swf again 3
---
.../apache/royale/jewel/beads/controls/textinput/TextPrompt.as | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/TextPrompt.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/TextPrompt.as
index 58865ff..e10a728 100644
---
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/TextPrompt.as
+++
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/controls/textinput/TextPrompt.as
@@ -20,9 +20,10 @@ package org.apache.royale.jewel.beads.controls.textinput
{
COMPILE::SWF
{
- import flash.text.TextFieldType;
+ import flash.text.TextFieldType;
- import org.apache.royale.core.CSSTextField;
+ import org.apache.royale.core.CSSTextField;
+ import org.apache.royale.core.UIBase;
}
import org.apache.royale.core.Bead;
import org.apache.royale.core.IStrand;
@@ -30,6 +31,7 @@ package org.apache.royale.jewel.beads.controls.textinput
import org.apache.royale.events.IEventDispatcher;
import org.apache.royale.jewel.supportClasses.textinput.TextInputBase;
+
/**
* The TextPrompt class is a specialty bead that can be used with
* any TextInput control. The bead places a string into the input field
@@ -104,7 +106,7 @@ package org.apache.royale.jewel.beads.controls.textinput
COMPILE::SWF
{
// listen for changes in text to hide or show
the prompt
- var model:Object = _strand.model;
+ var model:Object = UIBase(_strand).model;
if (!model.hasOwnProperty("text")) {
throw new Error("Model requires a text
property when used with TextPrompt");
}