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

refactor(dialogs): All dialogs inherit from BaseDialogElement. #1935

Merged
merged 3 commits into from
Apr 18, 2017

Conversation

frandiox
Copy link
Contributor

@frandiox frandiox commented Apr 11, 2017

@asial-matagawa @anatoo This is using inheritance for dialogs and removes a bunch of duplicated functionality. It would be awesome if we could also "inherit" docs, although I guess there's nothing like that in the current wcdoc, right?

@asial-matagawa
Copy link
Member

@frandiox
I agree with using inheritance for minimizing redundancy. Nice!
But I am not sure about things related to wcdoc.

@anatoo
What do you think about the relation between this refactor and wcdoc?

@frandiox
Copy link
Contributor Author

@asial-matagawa Basically, we have long comments for show, hide, onDeviceBackButton, visible, cancelable, etc. repeated in 4 components (5 with action sheet). What I mean with "docs inheritance" is to provide a way to put all of these common docs in BaseDialog file and get them from there.

@asial-matagawa
Copy link
Member

@frandiox
Yes, I know what you want to do.
What I am not sure is how to deal with the problem that wcdoc provides no way to do that.
(So I asked @anatoo)

@frandiox frandiox merged commit ac6bf2a into master Apr 18, 2017
@frandiox frandiox deleted the dialog-refactor branch April 18, 2017 09:58
asial-matagawa pushed a commit that referenced this pull request Apr 24, 2017
refactor(dialogs): All dialogs inherit from BaseDialogElement.
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.

2 participants