Skip to content
This repository was archived by the owner on Sep 30, 2018. It is now read-only.

Adding class method for view tag_name and class_name #22

Merged

Conversation

loicboutet
Copy link

Hello,

I think to have to redefine the tag_name and class_name method in the views to configure them could be improved. Here I propose to promote them to class method, so the configuration would be in the same style than for the element attribute. I implemented it in a backward compatible way.

Tell me if you want any improvements on it.
Loïc

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@adambeynon
Copy link
Contributor

We currently have a bug (to put it lightly) where all class variables are actually set on the same object, i.e. if we set a class variable on any class it will overwrite any class variable of the same name on any other class. We need to fix this first. In the meantime, it might be a good idea to change the implementation here to not use class variables, as the next opal release might not be for a few weeks etc. Thanks for the pull request though, it does make it nicer than the current impl.

@loicboutet
Copy link
Author

Hey,

Thanks for the feedback, I'll change the implementation and update the request :)

As per Adam instructions, class variable should be avoided at the
moment, so making a new implementation method based
@loicboutet
Copy link
Author

Changed the implementation to something method based. Tell me what you think.

@adambeynon
Copy link
Contributor

Hey, looking good to me, so merging in. Many thanks for the commit! 😄

adambeynon added a commit that referenced this pull request Sep 21, 2014
…class_method

Adding class method for view tag_name and class_name
@adambeynon adambeynon merged commit 8f4a798 into opal:master Sep 21, 2014
@loicboutet
Copy link
Author

Thx for merging :)
I'll send more soon ! I'm really fond of vienna, and hoping to use it in production soon.

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

Successfully merging this pull request may close these issues.

None yet

3 participants