Closed jonnor closed 9 years ago
@paulyoung Perhaps it should be called rig.single instead, as that is the main simplification here?
This couples image size to breakpoint size which is something I was trying to avoid.
It makes sense to do that for a full-screen background image but in a lot of cases we're displaying an image at a fraction of the screen width.
At first glance I'm a bit confused as to how assigning something to rig.simple
is working since rig
is a function...
I was anticipating the need to change the API slightly - perhaps making a CoffeeScript class called Rig
which can be instantiated for the existing behavior and have class methods for convenience.
Closing this in favor of 9571e0fe16f0936894a0dbfe93e5ee36030ee962.
Fixes #1