karacas / imgLiquid

jQuery plugin to resize images to fit in a container.
http://goo.gl/Wk8bU
MIT License
970 stars 207 forks source link

Can you un-initialise imgLiquid? #32

Closed vdecree closed 10 years ago

vdecree commented 10 years ago

Hey there,

I really only need to trigger imgLiquid at certain screen widths and remove it from others, is there any functionality to allow this?

karacas commented 10 years ago

you can use css media queries & $('body').width()

vdecree commented 10 years ago

I have it working on a media query type trigger, so it will only trigger around 560px width, although I need to cancel it out when the viewport gets bigger again. However there is no way to do this. Is it something you can add in at some point — a way to destroy an instance?