flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject [35/50] [abbrv] flex-asjs git commit: I’m not positive, but without this, there is likely going to be problems with variable renaming in minified code.
Date Mon, 31 Jul 2017 22:31:56 GMT
I’m not positive, but without this, there is likely going to be problems with variable renaming
in minified code.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c1661203
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c1661203
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c1661203

Branch: refs/heads/feature/amf
Commit: c16612031792e5c8ace964bcabaf131c89ddfd9a
Parents: 60f223a
Author: Harbs <harbs@in-tools.com>
Authored: Wed Jul 26 14:58:15 2017 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Wed Jul 26 14:58:15 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/events/KeyboardEvent.as | 10 ++++++++--
 .../src/main/flex/org/apache/flex/events/MouseEvent.as    |  8 +++++++-
 2 files changed, 15 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c1661203/frameworks/projects/Core/src/main/flex/org/apache/flex/events/KeyboardEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/KeyboardEvent.as
b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/KeyboardEvent.as
index dda7e0a..71b4dd1 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/KeyboardEvent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/KeyboardEvent.as
@@ -221,7 +221,13 @@ package org.apache.flex.events
         COMPILE::JS
 		override public function preventDefault():void
 		{
-			wrappedEvent ? wrappedEvent.preventDefault() : super.preventDefault();
+			if(wrappedEvent)
+				wrappedEvent.preventDefault();
+			else
+			{
+				super.preventDefault();
+				_defaultPrevented = true;
+			}
 		}
 
 		COMPILE::JS
@@ -245,7 +251,7 @@ package org.apache.flex.events
 		{
 			_defaultPrevented = value;
 		}
-        
+
         /**
          * Create a copy/clone of the KeyboardEvent object.
          *

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c1661203/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as
index 1b6fe7e..14a3af7 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/MouseEvent.as
@@ -449,7 +449,13 @@ package org.apache.flex.events
 		 */
 		override public function preventDefault():void
 		{
-			wrappedEvent ? wrappedEvent.preventDefault() : super.preventDefault();
+			if(wrappedEvent)
+				wrappedEvent.preventDefault();
+			else
+			{
+				super.preventDefault();
+				_defaultPrevented = true;
+			}
 		}
 
 		private var _defaultPrevented:Boolean;


Mime
View raw message