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

extending ui modules #25

Open
ziolmar opened this issue Jul 2, 2012 · 0 comments
Open

extending ui modules #25

ziolmar opened this issue Jul 2, 2012 · 0 comments

Comments

@ziolmar
Copy link

ziolmar commented Jul 2, 2012

Firstly I would like to thank you for your great job with kraniumjs framework. We are using it to build our mobile app and right now all is going great.
I have only one small question, about extending UI modules, I hope you could help me.

I want to extend Window module to add some new functions and I want that all new windows have this function.
So I can create file gswindow.js where I placed:

exports.Class = Window.extend({
init: function(o){
.....
this._super(o);
},
someFunction: function(){
alert('test');
}
});

And now I would like to create for example login window, so I would like to extend gswindow (from above), like this:

exports.Class = gswindow.extend({
init: function(o){
.....
this._super(o);
}
});

I'm wondering how to achieve such behaviour? Please help :)

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