ryanve / response.js

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

return the last source if the expected breakpoint source is not included... #32

Closed michaelhenry closed 10 years ago

michaelhenry commented 10 years ago

return the last source if the expected breakpoint source is not included in the elements data attributes.

ryanve commented 10 years ago

Thanks @michaelhenry but that could cause unwanted behavior in some situations. The existing technique iterates downward until it finds a value, or else defaults to the initial value.