flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject flex-asjs git commit: Fixed compiler warning where “instanceof” is deprecated and “is” should be used
Date Fri, 13 Jan 2017 23:15:30 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 941e52be9 -> 02fc2cbd9


Fixed compiler warning where “instanceof” is deprecated and “is” should be used


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

Branch: refs/heads/develop
Commit: 02fc2cbd9fe5de7f91f110e668c384f8c32e94bb
Parents: 941e52b
Author: Carlos Rovira <carlosrovira@apache.org>
Authored: Sat Jan 14 00:15:27 2017 +0100
Committer: Carlos Rovira <carlosrovira@apache.org>
Committed: Sat Jan 14 00:15:27 2017 +0100

----------------------------------------------------------------------
 .../Core/src/main/flex/org/apache/flex/utils/DisplayUtils.as       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02fc2cbd/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/DisplayUtils.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/DisplayUtils.as
b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/DisplayUtils.as
index 586b6da..9022381 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/DisplayUtils.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/DisplayUtils.as
@@ -75,7 +75,7 @@ package org.apache.flex.utils
 				}
 				bounds.x -= window.pageXOffset;
 				bounds.y -= window.pageYOffset;
-				if (obj.element instanceof SVGElement)
+				if (obj.element is SVGElement)
 				{
 					var m:org.apache.flex.geom.Matrix = getTransormMatrix(obj);
 					var tl:Point = m.transformPoint(bounds.topLeft);


Mime
View raw message