Expose getEmValue() #111

Merged
merged 7 commits into from Nov 21, 2013

Projects

None yet

2 participants

@tsvensen
tsvensen commented Mar 4, 2012

I propose exposing the private getEmValue() method, essentially adding it as an API option. I've updated the code to only do what's absolutely necessary to expose the method, then updated the documentation with a simple example.

I tested the updates with /test/test.html, successfully running respond.getEmValue() in the console.

Also, I've used this successfully to get ResponseJS to play nice with The Goldilocks Approach (Goldilocks demo), which uses EM media queries.

FYI, first time submitting a pull request and using github.

@jefflembeck jefflembeck merged commit c7598df into scottjehl:master Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment