You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/11/02 19:08:36 UTC
[royale-asjs] branch develop updated: fix build
This is an automated email from the ASF dual-hosted git repository.
aharui 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 8cca6e3 fix build
8cca6e3 is described below
commit 8cca6e31112ac58d94bde0710a198c17385565a6
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Nov 2 12:08:24 2018 -0700
fix build
---
.../MXRoyale/src/main/royale/mx/external/ExternalInterface.as | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/external/ExternalInterface.as b/frameworks/projects/MXRoyale/src/main/royale/mx/external/ExternalInterface.as
index 7f15783..e27e64f 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/external/ExternalInterface.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/external/ExternalInterface.as
@@ -128,6 +128,8 @@ package mx.external
*
* @param functionName The name by which the browser can invoke the function.
* @param closure The function closure to invoke.
+ *
+ * @royaleignorecoercion HTMLElement
*/
public static function addCallback(functionName:String, closure:Function):void
{
@@ -138,10 +140,10 @@ package mx.external
COMPILE::JS
{
// use a simple script object to hang our callback properties off..
- var extInt = document.getElementById(_objectID);
+ var extInt:HTMLElement = document.getElementById(_objectID) as HTMLElement;
if (!extInt)
{
- extInt = document.createElement("script");
+ extInt = document.createElement("script") as HTMLElement;
extInt.id = _objectID;
document.body.appendChild(extInt);
}