flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject [15/50] [abbrv] git commit: [flex-asjs] [refs/heads/feature/amf] - use getBrowserEvent()
Date Mon, 31 Jul 2017 22:31:36 GMT
use getBrowserEvent()


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

Branch: refs/heads/feature/amf
Commit: d0ac21c4099303ce1b41efc313e1eff1221934ec
Parents: ad58310
Author: Harbs <harbs@in-tools.com>
Authored: Mon Jul 24 00:50:55 2017 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Mon Jul 24 00:50:55 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/core/HTMLElementWrapper.as   | 2 +-
 .../Core/src/main/flex/org/apache/flex/events/BrowserEvent.as  | 6 +++---
 .../Core/src/main/flex/org/apache/flex/events/KeyboardEvent.as | 2 +-
 .../Core/src/main/flex/org/apache/flex/events/MouseEvent.as    | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0ac21c4/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
index 1260bef..415eb78 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/core/HTMLElementWrapper.as
@@ -68,7 +68,7 @@ package org.apache.flex.core
 		static public function fireListenerOverride(listener:Object, eventObject:goog.events.BrowserEvent):Boolean
 		{
             var e:IBrowserEvent;
-            var nativeEvent:Object = eventObject["event_"];
+            var nativeEvent:Object = eventObject.getBrowserEvent();
             switch(nativeEvent.constructor.name)
             {
                 case "KeyboardEvent":

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0ac21c4/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
index 9bcad2e..76f42b2 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
@@ -421,7 +421,7 @@ package org.apache.flex.events
          */
 		public function stopImmediatePropagation():void
 		{
-			wrappedEvent.event_.stopImmediatePropagation(); // not in goog.events.BrowserEvent
+			wrappedEvent.getBrowserEvent().stopImmediatePropagation(); // not in goog.events.BrowserEvent
 			wrappedEvent.stopPropagation();
 		}
 
@@ -482,7 +482,7 @@ package org.apache.flex.events
 		{
 			if(_buttons > -1)
 				return _buttons == 1;
-			var ev:* = wrappedEvent.event_;
+			var ev:* = wrappedEvent.getBrowserEvent();
 			//Safari does not yet support buttons
 			if ('buttons' in ev)
 				return ev["buttons"] == 1;
@@ -495,7 +495,7 @@ package org.apache.flex.events
 
 		public function get buttons():int
 		{
-			return wrappedEvent.event_.buttons;
+			return wrappedEvent.getBrowserEvent().buttons;
 		}
 	}
 }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0ac21c4/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 91ea639..50385d2 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
@@ -181,7 +181,7 @@ package org.apache.flex.events
             if(wrappedEvent)
             {
 			    wrappedEvent.stopPropagation();
-			    wrappedEvent["event_"].stopImmediatePropagation();
+			    wrappedEvent.getBrowserEvent().stopImmediatePropagation();
             }
 		}
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d0ac21c4/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 19a044a..674ac87 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
@@ -278,7 +278,7 @@ package org.apache.flex.events
 				return _buttons == 1;
 			if(!wrappedEvent)
 				return false;
-			var ev:* = wrappedEvent.event_;
+			var ev:* = wrappedEvent.getBrowserEvent();
 			//Safari does not yet support buttons
 			if ('buttons' in ev)
 				_buttons = ev["buttons"];
@@ -531,7 +531,7 @@ package org.apache.flex.events
             if(wrappedEvent)
             {
 			    wrappedEvent.stopPropagation();
-			    wrappedEvent["event_"].stopImmediatePropagation();
+			    wrappedEvent.getBrowserEvent().stopImmediatePropagation();
             }
 		}
 


Mime
View raw message