From d76832181706a86dcef1e0c3b60749f82a2e0e27 Mon Sep 17 00:00:00 2001 From: Chirayu Krishnappa Date: Tue, 25 Mar 2014 17:10:38 -0700 Subject: [PATCH] fix(events): make ShadowRootEventHandler play nice with static injection --- lib/core_dom/event_handler.dart | 4 ++-- lib/core_dom/view_factory.dart | 2 +- test/angular_spec.dart | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/core_dom/event_handler.dart b/lib/core_dom/event_handler.dart index 040e60731..1e87013ac 100644 --- a/lib/core_dom/event_handler.dart +++ b/lib/core_dom/event_handler.dart @@ -102,8 +102,8 @@ class EventHandler { } @NgInjectableService() -class _ShadowRootEventHandler extends EventHandler { - _ShadowRootEventHandler(dom.ShadowRoot shadowRoot, +class ShadowRootEventHandler extends EventHandler { + ShadowRootEventHandler(dom.ShadowRoot shadowRoot, Expando expando, ExceptionHandler exceptionHandler) : super(shadowRoot, expando, exceptionHandler); diff --git a/lib/core_dom/view_factory.dart b/lib/core_dom/view_factory.dart index 91271a688..1a4bfec36 100644 --- a/lib/core_dom/view_factory.dart +++ b/lib/core_dom/view_factory.dart @@ -231,7 +231,7 @@ class _ComponentFactory implements Function { var shadowModule = new Module() ..type(type) ..type(NgElement) - ..type(EventHandler, implementedBy: _ShadowRootEventHandler) + ..type(EventHandler, implementedBy: ShadowRootEventHandler) ..value(Scope, shadowScope) ..value(TemplateLoader, templateLoader) ..value(dom.ShadowRoot, shadowDom) diff --git a/test/angular_spec.dart b/test/angular_spec.dart index d33ccb805..84c0e134f 100644 --- a/test/angular_spec.dart +++ b/test/angular_spec.dart @@ -194,6 +194,7 @@ main() { "angular.core.dom.Cookies", "angular.core.dom.ElementBinderTreeRef", // internal? "angular.core.dom.EventHandler", + "angular.core.dom.ShadowRootEventHandler", // internal "angular.core.dom.Response", "angular.core.dom.HttpDefaultHeaders", "angular.core.dom.Animation",