File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ # v1.0.2, 2018-04-27
2+ * Fix for dispatch() method
3+
14# v1.0.1, 2018-04-26
25* Fix for namespace
36
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public static function hasListeners(string $event) : bool
9494 public static function dispatch (string $ event , array $ args = [], bool $ return = false )
9595 {
9696 // is there some registered $listeners ?
97- if (count (static ::$ listeners ) > 0 ) {
97+ if (isset ( static :: $ listeners [ $ event ]) && count (static ::$ listeners[ $ event ] ) > 0 ) {
9898
9999 // Get all listeners for given event.
100100 $ listeners = static ::$ listeners [$ event ];
Original file line number Diff line number Diff line change 11# Event Component
2- ![ version] ( https://img.shields.io/badge/version-1.0.1 -brightgreen.svg?style=flat-square " Version ")
2+ ![ version] ( https://img.shields.io/badge/version-1.0.2 -brightgreen.svg?style=flat-square " Version ")
33[ ![ MIT License] ( https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square )] ( https://github.com/flextype-components/event/blob/master/LICENSE )
44
55Event Component provides a versatile tool to manage events in your app.
You can’t perform that action at this time.
0 commit comments