]> git.openstreetmap.org Git - potlatch2.git/blobdiff - net/systemeD/halcyon/styleparser/NestedCSSLoader.as
start to use @import rules for stylesheets. Add "enhanced" (access, direction &c...
[potlatch2.git] / net / systemeD / halcyon / styleparser / NestedCSSLoader.as
index 1709452c01d19d47b0a6f2d0c127816bfea32669..d088f63cb18cb852d3ae09be59f5faa0b261b437 100644 (file)
@@ -23,7 +23,7 @@ package net.systemeD.halcyon.styleparser {
                private var url:String;
                private var count:int;
 
-               private static const IMPORT:RegExp=/@import [^'"]*['"]([^'"]+)['"][^;]*;/g;             // '
+               private static const IMPORT:RegExp=/@import\s*[^'"]*['"]([^'"]+)['"][^;]*;/g;           // '
 
                public function NestedCSSLoader() {
                }
@@ -65,6 +65,7 @@ package net.systemeD.halcyon.styleparser {
 
                private function fileError(event:Event):void {
                        // just fire a complete event so we don't get an error dialogue
+                       trace("Error while trying to load "+url);
                        fireComplete();
                }