Skip to content

Events 不应该提供 mixTo 方法。 #14

Description

@hotoo
  1. mixTo 应该由第三方 mix 模块提供。
  2. Events.mixTo 方法不应该将 trigger 方法暴露。trigger 方法应该只提供给内部使用。
define("ModuleA", functioin(){
  var ModuleA = function(){};
  Events.mixTo(ModuleA);

  module.exports = ModuleA;
});

var a = new ModuleA();
// 触发事件是对象内部逻辑、状态,a 对象不应该拥有 `trigger` 方法。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions