KyleAMathews / element-resize-event

Library to make it easy to listen for element resize events
http://kyleamathews.github.io/element-resize-event/
MIT License
175 stars 44 forks source link

Unbind event? #2

Closed jasonkuhrt closed 8 years ago

jasonkuhrt commented 9 years ago

It appears there is no way to remove event handlers. Is this correct?

KyleAMathews commented 9 years ago

Not yet. Note we'd also need to clean up the extra elements that are added. PR welcome or I'll get to this eventually.

jasonkuhrt commented 9 years ago

I will try to cook something up...

KyleAMathews commented 9 years ago

Thanks!

ggoodman commented 9 years ago

Has anyone made any un-published progress on this?

agarcher commented 8 years ago

There is another library that gives element level resize notifications and has unbind support. See https://github.com/marcj/css-element-queries. The main focus of the plugin is much higher level (to provide css element queries, not just resize detection), but it does expose a small module that does the resize tracking only.

See https://github.com/marcj/css-element-queries/blob/master/src/ResizeSensor.js and the "ResizeSensor Demo" section at http://marcj.github.io/css-element-queries/

countravioli commented 8 years ago

Can this issue be closed?

KyleAMathews commented 8 years ago

Yup!

trevordmiller commented 7 years ago

Pull request submitted to add documentation for unbind: https://github.com/KyleAMathews/element-resize-event/pull/20