flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject [32/44] git commit: [flex-sdk] [refs/heads/develop] - Fix for https://issues.apache.org/jira/browse/FLEX-34633
Date Mon, 24 Nov 2014 21:13:22 GMT
Fix for https://issues.apache.org/jira/browse/FLEX-34633


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

Branch: refs/heads/develop
Commit: ffd85a5c68e0f3edcc39246a6acb806c58304838
Parents: 7b912c6
Author: OmPrakash Muppirala <bigosmallm@gmail.com>
Authored: Wed Nov 5 17:39:59 2014 -0800
Committer: OmPrakash Muppirala <bigosmallm@gmail.com>
Committed: Wed Nov 5 17:39:59 2014 -0800

----------------------------------------------------------------------
 .../mobiletheme/src/spark/skins/android4/HSliderSkin.as       | 7 +++++++
 .../projects/mobiletheme/src/spark/skins/ios7/HSliderSkin.as  | 7 +++++++
 2 files changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ffd85a5c/frameworks/projects/mobiletheme/src/spark/skins/android4/HSliderSkin.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/android4/HSliderSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/android4/HSliderSkin.as
index 6f970f8..c9f696b 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/android4/HSliderSkin.as
+++ b/frameworks/projects/mobiletheme/src/spark/skins/android4/HSliderSkin.as
@@ -25,6 +25,7 @@ package spark.skins.android4
 	
 	import mx.core.ClassFactory;
 	import mx.core.IFactory;
+	import mx.events.FlexEvent;
 	
 	import spark.components.Button;
 	import spark.components.HSlider;
@@ -100,10 +101,16 @@ package spark.skins.android4
 		public function set hostComponent(value:HSlider):void 
 		{
 			if (_hostComponent)
+			{
 				_hostComponent.removeEventListener(Event.CHANGE, thumbPositionChanged_handler);
+				_hostComponent.removeEventListener(FlexEvent.VALUE_COMMIT, thumbPositionChanged_handler);
+			}
 			_hostComponent = value;
 			if (_hostComponent)
+			{
 				_hostComponent.addEventListener(Event.CHANGE, thumbPositionChanged_handler);
+				_hostComponent.addEventListener(FlexEvent.VALUE_COMMIT, thumbPositionChanged_handler);
+			}
 		}
 		
 		//--------------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ffd85a5c/frameworks/projects/mobiletheme/src/spark/skins/ios7/HSliderSkin.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/ios7/HSliderSkin.as b/frameworks/projects/mobiletheme/src/spark/skins/ios7/HSliderSkin.as
index 762ea64..db59b7f 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/ios7/HSliderSkin.as
+++ b/frameworks/projects/mobiletheme/src/spark/skins/ios7/HSliderSkin.as
@@ -25,6 +25,7 @@ package spark.skins.ios7
 	
 	import mx.core.ClassFactory;
 	import mx.core.IFactory;
+	import mx.events.FlexEvent;
 	
 	import spark.components.Button;
 	import spark.components.HSlider;
@@ -100,10 +101,16 @@ package spark.skins.ios7
 		public function set hostComponent(value:HSlider):void 
 		{
 			if (_hostComponent)
+			{
 				_hostComponent.removeEventListener(Event.CHANGE, thumbPositionChanged_handler);
+				_hostComponent.removeEventListener(FlexEvent.VALUE_COMMIT, thumbPositionChanged_handler);
+			}
 			_hostComponent = value;
 			if (_hostComponent)
+			{
 				_hostComponent.addEventListener(Event.CHANGE, thumbPositionChanged_handler);
+				_hostComponent.addEventListener(FlexEvent.VALUE_COMMIT, thumbPositionChanged_handler);
+			}
 		}
 		
 		//--------------------------------------------------------------------------


Mime
View raw message