hyperstack-org/hyperstack

supply default method for events

Open

#247 创建于 2019年9月2日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (43 fork)batch import
enhancementgood first issue

仓库指标

Star
 (531 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Currently if no callback is supplied for the event, nothing happens, and firing the event returns nil.

It might be handy be able to supply a default action.

i.e. fires save: :default_save_method

currently you can work around this by checking props[event_name] for nil

贡献者指南