Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增Action中leave方法里调用Action.prototype.dispose #164

Open
wants to merge 2 commits into
base: 3.1/develop
Choose a base branch
from

Conversation

wenber
Copy link

@wenber wenber commented Aug 19, 2015

No description provided.

@@ -284,6 +284,15 @@ define(
}

/**
* 如果Action本身也有dispose方法,则执行
* 主要用来dispose掉一些DOM事就绑定,因为我们经常在Action中通过bindEvent来绑定DOM事件
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

绑定 DOM 事件为什么不是在 View 里做的?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同意楼上,这个调用dispose的逻辑本身没问题,注释最好改改,太误导人

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

恩,注释改了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants