{"name":"element-resize-event","description":"Polyfill to make it easy to listen for element resize events","version":"2.0.7","author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bugs":{"url":"https://github.com/KyleAMathews/element-resize-event/issues"},"devDependencies":{"browserify":"^8.1.3","eslint":"^2.10.2","eslint-config-airbnb-base":"^3.0.1","eslint-plugin-import":"^1.8.0"},"homepage":"https://github.com/KyleAMathews/element-resize-event","keywords":["event","resize","element-query","element queries"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/KyleAMathews/element-resize-event.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"e84836097e0763fce5215b010af596739325ae65","_id":"element-resize-event@2.0.7","_shasum":"8b63953715967cd2241620245573e79e684e07b0","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.4.0","_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"maintainers":[{"name":"kylemathews","email":"mathews.kyle@gmail.com"}],"dist":{"shasum":"8b63953715967cd2241620245573e79e684e07b0","tarball":"http://registry-npm.ywwl.com/element-resize-event/download/element-resize-event-2.0.7.tgz","integrity":"sha512-dNpOV9y5ZaOgBmO/l4zrtjDFDStk5zXs+eIcACdzeqlki6J1CL+Nr4gbLUkzL3Mlmgr4loFw+gYHDRQ9qWeAUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmE66JN3hSZen8Uc729z23o8SGTki63RpYTPYaUkqv4AiApDs40DaHmWXYjnkJwKVSoQ8J5FeOQdMBDQs1iMDDtLg=="}],"size":11385,"noattachment":false,"key":"/element-resize-event/-/element-resize-event-2.0.7.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/element-resize-event-2.0.7.tgz_1473701901271_0.6515882853418589"},"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":1473701904046,"_cnpm_publish_time":1473701904046,"dist-tags":{"latest":"3.0.6"}}