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

change 'self' style code #5

Open
mr47 opened this issue Aug 28, 2014 · 1 comment
Open

change 'self' style code #5

mr47 opened this issue Aug 28, 2014 · 1 comment

Comments

@mr47
Copy link

mr47 commented Aug 28, 2014

in baascms you using
var self = this;
func(function(){
self.some = ....
});
use bind,apply or call to set right context
its can help you a lot http://habrahabr.ru/post/199456/
thanks

@mr47
Copy link
Author

mr47 commented Aug 28, 2014

hm, i just watch code and i see mix of call style with self style, its copy-paste problems or its just you do that ?

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

1 participant