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

Idea: Media events #94

Closed
addyosmani opened this issue Aug 22, 2012 · 9 comments
Closed

Idea: Media events #94

addyosmani opened this issue Aug 22, 2012 · 9 comments
Labels

Comments

@addyosmani
Copy link
Member

From the discussion with @dustinboston

  • Publish events on media change
  • E.g. when device is below 400px wide, trigger an even that tells the calendar to go into agenda mode
  • Could be based on matchMedia.js
@vtsurka
Copy link

vtsurka commented Aug 22, 2012

I doubt that there is a need...

@sindresorhus
Copy link
Contributor

Bloatware? :p

Though, it could always be an Aura extension. Maybe to show off how easy it is to extend Aura.

@addyosmani
Copy link
Member Author

I think @sindresorhus makes an interesting point. Do we keep Aura itself as a form of core-architecture and add anything (at all) beyond that as an extension? The Backbone-Aura portion of the project is now an example of a larger extension but it might be useful to consider where additions come in.

I think it's important to figure this out as we're going to want to add more to the project in the future and having an agreed upon path for it would be great.

@tony
Copy link
Contributor

tony commented Aug 23, 2012

That indeed, to some applications, would be an interesting event.

This utility to Aura will publish events / triggers when the screen changed size, so apps / modules can act accordingly.

This is cool. It is my belief this could be implemented as an Aura module? Would it need access to window or document global?

If that is true, and it is a module, it could be turned on an off, register to publish events, and even unloadable without refreshing the page? That'd be +1 useful events and +1 for demonstration of how aura's modular architecture can provde useful beyond backbone.

@gersongoulart
Copy link
Contributor

@addyosmani I'm with @sindresorhus. Keeping Aura itself as a core-architecture and add anything else as an extension is way to go. We need to focus on what Aura has to do right, like loading/unloading widgets while taking care of garbage collection and memory usage etc. Everything else are extensions.

@addyosmani
Copy link
Member Author

I think focusing on loading/unloading and memory usage will probably be the most important parts to get right before our next launch. If we have time, we'll look into media events as an extension (I do think it could be really interesting), but agree that the core architecture is the most important focus at the moment.

@dustinboston
Copy link
Contributor

@addyosmani - I agree with the general sentiment here that it's better as an extension. Shall we mark this as closed?

@addyosmani
Copy link
Member Author

@dustinboston I think we could keep it open for exploration as an extension. Just needed some clarification on how it might manifest in the project :)

@addyosmani
Copy link
Member Author

Closing due to age and relevance to direction in master.

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

No branches or pull requests

6 participants