hyperstack-org/hyperstack

supply default method for events

Open

#247 创建于 2019年9月2日

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

描述

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

贡献者指南