Skip to content

Conversation

@erwinmombay
Copy link
Member

No description provided.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erwinmombay
Copy link
Member Author

@cramforce PTAL. wasn't sure how to refer to the types in an extern, couldn't get the relative paths to the types to work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why private properties?

Copy link
Member Author

@erwinmombay erwinmombay Jun 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will prevent closure compiler from renaming the properties. right now theres a chance that these properties if renamed will have a collision with a renamed property in the extension (symbol reuse).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're only really worried about BaseElement, since its the only code that travels across compilation units

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvoytenko This is special because the extensions subclass a class from a different compilation unit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. That's pretty annoying. So, actually, none of these vars are really needed there. We can easily delegate these methods to the element instance as most of methods do now. Not sure why I singled out these properties to be honest :)

@cramforce
Copy link
Member

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The warning art seems to be broken.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha i think its that way, i used the star wars font for it

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.

4 participants