Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

Is there a way to have a callback or event for after all pollyfills have performed doMatched? #13

Open
OpherV opened this issue Sep 2, 2013 · 3 comments

Comments

@OpherV
Copy link

OpherV commented Sep 2, 2013

This will be useful for polyfills that rely on each other.

@philipwalton
Copy link
Owner

Short answer, no. Not at the moment.

doMatched runs at the very beginning, but it also runs any time the media changes and new styles are matched, so it'd be a bit tricky to accomplish this the way the library is now. There'd have to be some sort of distinction between the initial run and subsequent runs.

@OpherV
Copy link
Author

OpherV commented Sep 3, 2013

Oh too bad
I'm writing an alternative to flexie, and was really hoping to use polyfill.js

The problem is that with the flex box model every display: flex container needs to be aware of its children with flex property, and without running a hook after all parsing was done, there is no proper way to connect containers with children.

Is that something you're planning on adding?

@philipwalton
Copy link
Owner

To be honest, I haven't been able to work on library recently, and I don't know when I'll get a chance again. So, if you're not willing to contribute to the library, it might not be mature enough at the moment for what you're looking for. Sorry.

That being said, I do agree that this is a good feature to add, so I'll leave this issue open as a reminder to add it later.

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

No branches or pull requests

2 participants