{"name":"element-resize-event","version":"2.0.0","description":"Polyfill to make it easy to listen for element resize events","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/KyleAMathews/element-resize-event.git"},"keywords":["resize","event"],"author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/KyleAMathews/element-resize-event/issues"},"homepage":"https://github.com/KyleAMathews/element-resize-event","gitHead":"1138bba323a53fee22aadedb2892a70b32fa9315","_id":"element-resize-event@2.0.0","_shasum":"c93a427bf6ad53a64506b348f63b518f17080d0d","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"maintainers":[{"name":"kylemathews","email":"mathews.kyle@gmail.com"}],"dist":{"shasum":"c93a427bf6ad53a64506b348f63b518f17080d0d","tarball":"http://registry-npm.ywwl.com/element-resize-event/download/element-resize-event-2.0.0.tgz","integrity":"sha512-uDkOV5bX1HKkCzx+z85ARoVOZq3KYuzuG89Jm5aJjvxPxM2ykuF0DDKm3fk5IQPEGY8Kegcl1O+O+2RbUUByOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBbx0SbZuRIovzxg9GstGZc0flkklvkPvgHSeT7oJVohAiEA9UsHH99eE8xO6hxCRLDDfzClAjt9LEIecZc/ICgHExs="}],"size":12714,"noattachment":false,"key":"/element-resize-event/-/element-resize-event-2.0.0.tgz"},"directories":{},"readme":"# element-resize-event\n\nLibrary to make it easy to listen for element resize events\n\nCode borrowed from a [blog post by\nbackalleycoder.com](http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/).\n\n## Install\n\n`npm install element-resize-event`\n\n## Dependencies\n\nThis library depends on the availability of `requestAnimationFrame` and `cancelAnimationFrame`\n\n## Usage\n\n```javascript\nvar elementResizeEvent = require(\"element-resize-event\")\n\nvar element = document.getElementById(\"resize\")\n\nelementResizeEvent(element, function () {\n  console.log(\"resized!\")\n  console.log(element.offsetWidth)\n})\n```\n\n### Unbinding The Event Listener\n\n```javascript\nvar unbind = require(\"element-resize-event\").unbind\n\nunbind(element)\n```\n","publish_time":1424312467866,"_cnpm_publish_time":1424312467866,"dist-tags":{"latest":"3.0.6"}}