diff --git a/src/cx/asQuery/$.as b/src/cx/asQuery/$.as index 7c80205..d95525a 100644 --- a/src/cx/asQuery/$.as +++ b/src/cx/asQuery/$.as @@ -17,6 +17,7 @@ package cx.asQuery */ public function $(selector:* = null,root:DisplayObjectContainer = null,onlyChild:Boolean = false):ASQueryObject { + if( typeof(selector)=="string" && selector == ""){ selector = null; } return new ASQueryObject(root == null ? ASQueryConfig.stage : root,selector == null ? ASQueryConfig.stage : selector,onlyChild); } } \ No newline at end of file