You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2018/10/15 07:35:11 UTC
[royale-asjs] branch develop updated: Fixed IEEventAdapterBead
This is an automated email from the ASF dual-hosted git repository.
harbs 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 252cb99 Fixed IEEventAdapterBead
252cb99 is described below
commit 252cb99da4cdf00e335e2b987f7eb79c1fd80cfe
Author: Harbs <ha...@in-tools.com>
AuthorDate: Mon Oct 15 10:34:59 2018 +0300
Fixed IEEventAdapterBead
---
.../royale/org/apache/royale/html/beads/IEEventAdapterBead.as | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/IEEventAdapterBead.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/IEEventAdapterBead.as
index 41711a6..4be76a0 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/IEEventAdapterBead.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/IEEventAdapterBead.as
@@ -26,9 +26,8 @@ package org.apache.royale.html.beads
}
/**
- * The IEEventAdapterBead is used to get URL parameter values specified
- * when loading an application. It's different than the ApplicationParametersBead
- * in that URL parameter keys are case insensitive.
+ * The IEEventAdapterBead is used to enable correct handling of MouseEvents and KeyboardEvents in IE.
+ * This is needed because IE does not support the <code>name</code> property.
*
* @langversion 3.0
* @playerversion Flash 10.2
@@ -54,10 +53,10 @@ package org.apache.royale.html.beads
{
COMPILE::JS
{
- if(typeof window["KeyboardEvent"].prototype["name"] == "undefined")
+ if(typeof window["KeyboardEvent"]["name"] == "undefined")
{// IE does not have a prototype name property
- defineSimpleGetter(window["KeyboardEvent"].prototype,"name","KeyboardEvent");
- defineSimpleGetter(window["MouseEvent"].prototype,"name","MouseEvent");
+ defineSimpleGetter(window["KeyboardEvent"],"name","KeyboardEvent");
+ defineSimpleGetter(window["MouseEvent"],"name","MouseEvent");
}
}
}