You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/07/28 20:40:53 UTC

[27/36] git commit: [flex-asjs] [refs/heads/develop] - don't block if no fonts

don't block if no fonts


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

Branch: refs/heads/develop
Commit: 2c5501cf9986ae59cf71153ab4a932ae3e0a45ba
Parents: 5c6408c
Author: Alex Harui <ah...@apache.org>
Authored: Mon Jul 27 15:35:36 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Jul 27 15:35:36 2015 -0700

----------------------------------------------------------------------
 .../Core/as/src/org/apache/flex/core/CSSFontFaceBead.as        | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2c5501cf/frameworks/projects/Core/as/src/org/apache/flex/core/CSSFontFaceBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/core/CSSFontFaceBead.as b/frameworks/projects/Core/as/src/org/apache/flex/core/CSSFontFaceBead.as
index f17f33b..bc9839a 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/core/CSSFontFaceBead.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/core/CSSFontFaceBead.as
@@ -88,6 +88,12 @@ package org.apache.flex.core
         {
             if (!loaders)
                 loaders = [];
+
+            if (!fontFaces || fontFaces.length == 0)
+            {
+                IEventDispatcher(_strand).removeEventListener("preinitialize", preinitHandler);
+                return;
+            }
             
             for each (var url:String in fontFaces)
             {