From 7d8c3e6050a16e125578441f49cafeba8d426d46 Mon Sep 17 00:00:00 2001 From: Rich Glazerman Date: Fri, 26 Apr 2019 11:43:48 -0400 Subject: [PATCH] Make hasListeners public Allow for determining whether listeners exist on an object before calling removeListeners. Method already exists, just making it public. --- packages/@ember/-internals/metal/lib/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@ember/-internals/metal/lib/events.ts b/packages/@ember/-internals/metal/lib/events.ts index 0dd230bc06e..636242616e8 100644 --- a/packages/@ember/-internals/metal/lib/events.ts +++ b/packages/@ember/-internals/metal/lib/events.ts @@ -156,7 +156,7 @@ export function sendEvent( } /** - @private + @public @method hasListeners @static @for @ember/object/events