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

[ASAP] provide 'goog.ui.SliderBase.EventType' #317

Closed
eyakcn opened this issue Jul 17, 2014 · 6 comments
Closed

[ASAP] provide 'goog.ui.SliderBase.EventType' #317

eyakcn opened this issue Jul 17, 2014 · 6 comments

Comments

@eyakcn
Copy link

eyakcn commented Jul 17, 2014

Currently sliderbase.js does not provide 'goog.ui.SliderBase.EventType', I think this is a mistake.

@nicks
Copy link
Contributor

nicks commented Jul 17, 2014

this guide:
https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml?showone=Providing_Dependencies_With_goog.provide#Providing_Dependencies_With_goog.provide

says not to do this.

in particular, it doesn't make sense to require SliderBase.EventType independently of SliderBase.

@eyakcn
Copy link
Author

eyakcn commented Jul 17, 2014

Really?

goog.provide('goog.ui.SliderBase');
goog.provide('goog.ui.SliderBase.AnimationFactory');
goog.provide('goog.ui.SliderBase.Orientation');

goog.ui.SliderBase.Orientation is also enum, why provided?

Actually I create this issue because there is a third-party tool - fixclosure - which will fix dependencies automatically. My code need to listen to 'goog.ui.SliderBase.EventType.DRAG_VALUE_START', and that tool automatically add
'goog.require('goog.ui.SliderBase.EventType');'.
If you think it's not closure's problem, maybe I need to contact the author of fixclosure.

@nanaze
Copy link
Contributor

nanaze commented Jul 18, 2014

Please contact the author of fixclosure. That tool must be aware of what other files are providing.

@nanaze nanaze closed this as completed Jul 18, 2014
@eyakcn
Copy link
Author

eyakcn commented Jul 18, 2014

@nanaze I see. Thank you for your answer. But I still want to know why goog.provide('goog.ui.SliderBase.Orientation');

@nicks
Copy link
Contributor

nicks commented Jul 18, 2014

SliderBase.Orientation is provided for legacy reasons.

@eyakcn
Copy link
Author

eyakcn commented Jul 18, 2014

@nicks OK, I got it. Thank you!

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

3 participants