royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] branch develop updated: private access of other instances of your type requires strong typing since the names will be decorated
Date Tue, 30 Oct 2018 07:38:02 GMT
This is an automated email from the ASF dual-hosted git repository.

aharui 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 5e5d21c  private access of other instances of your type requires strong typing since
the names will be decorated
5e5d21c is described below

commit 5e5d21c585500c9daed23e58de1b64266831920e
Author: Alex Harui <aharui@apache.org>
AuthorDate: Tue Oct 30 00:37:46 2018 -0700

    private access of other instances of your type requires strong typing since the names
will be decorated
---
 .../royale/org/apache/royale/textLayout/formats/TextLayoutFormat.as   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/formats/TextLayoutFormat.as
b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/formats/TextLayoutFormat.as
index 868a020..a41ad7d 100644
--- a/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/formats/TextLayoutFormat.as
+++ b/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/formats/TextLayoutFormat.as
@@ -3746,8 +3746,8 @@ package org.apache.royale.textLayout.formats
 			if (stylesObject is TextLayoutFormat)
 			{
 				// DO THIS possible optimization if (format.getStyles() == _emptyStyles) return;
-				stylesObject.writableStyles();
-				stylesObject = stylesObject.getStyles();
+				(stylesObject as TextLayoutFormat).writableStyles();
+				stylesObject = (stylesObject as TextLayoutFormat).getStyles();
 			}
 
 			if (stylesObject.columnBreakBefore != undefined && stylesObject.columnBreakBefore
!= TextLayoutFormat.columnBreakBeforeProperty.defaultValue)


Mime
View raw message