ryanve / response.js

Responsive design toolkit
http://responsejs.com
Other
801 stars 123 forks source link

Cannot suppress default content at higher breakpoint? #12

Closed alanhogan closed 11 years ago

alanhogan commented 12 years ago

Following instructions at #10, I created a custom test using prefix r- and breakpoints named mobile, tablet, and desktop.

Now, this first code worked perfectly as expected:

    <div>
      <div data-r-tablet='Content for tablet and desktop users'></div>
    </div>

But the content in the following div was always displayed, despite the fact that I (intended to) explicitly remove the content at the tablet breakpoint:

        <div data-r-tablet=''>
          Same content but in a different location, for only mobile users
        </div>
ryanve commented 12 years ago

@alanhogan I understand exactly what you're trying to do and just made an update that fixes it. Use version 0.6.1 and you should be fine. Thanks for reminding me 'bout that—I'd run into that myself before and had been meaning to fix it. In case you didn't know <div data-r-tablet=""> is effectively equivalent to <div data-r-tablet>

alanhogan commented 12 years ago

Woo! I was trying to track it down and hadn’t any luck yet. Thank you! 35 minutes from issue filed to version released? That must be a record of some sort…

ryanve commented 12 years ago

@alanhogan LOL I was right here and just drank like 3 cups of coffee =]