From c55ab02b198c0a6cbfbf0835e84e6a3870d78458 Mon Sep 17 00:00:00 2001 From: Pavel Jbanov Date: Fri, 14 Jun 2013 15:22:15 -0700 Subject: [PATCH] Adding missing static lookup for $priority --- lib/directive.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/directive.dart b/lib/directive.dart index a140c90e2..192c5ac65 100644 --- a/lib/directive.dart +++ b/lib/directive.dart @@ -40,6 +40,10 @@ class Directive { // It would be awesome if $transclude could be an enum. $transclude = reflectStaticField(type, '\$transclude'); $template = reflectStaticField(type, '\$template'); + $priority = reflectStaticField(type, '\$priority'); + if ($priority == null) { + $priority = 0; + } isStructural = $transclude != null; var $selector = reflectStaticField(type, r'$selector'); if ($selector != null) {