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

ImageEditor 代码问题 #12

Open
dc-me opened this issue Sep 1, 2015 · 1 comment
Open

ImageEditor 代码问题 #12

dc-me opened this issue Sep 1, 2015 · 1 comment

Comments

@dc-me
Copy link

dc-me commented Sep 1, 2015

在ImageEditor处理图片上传的时候有这么一段代码self.trigger('beforechange') 但是,这个最终是用Zepto处理的,但是Like trigger, but triggers only event handlers on current elements and doesn’t bubble. 也就是说这个代码根本没啥用self是一个对象,不是一个DOM,请问下加上这个代码的原因,谢谢。

@cnwander
Copy link
Contributor

这是触发自定义事件。
比如:
var editor = mo.ImageEditor...
editor.on('beforechange', function(e){
// do something
})

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

No branches or pull requests

2 participants