{"_id":"jquery.initialize","_rev":"10-061b44702f1ce0c88986ed16d0d630ee","name":"jquery.initialize","description":"jQuery plugin for dynamically created elements initialization","dist-tags":{"latest":"1.3.2"},"versions":{"1.1.0":{"name":"jquery.initialize","version":"1.1.0","description":"jQuery plugin for dynamically created elements initialization","main":"jquery.initialize.js","scripts":{"test":""},"repository":{"type":"git","url":"git+https://github.com/timpler/jquery.initialize.git"},"author":{"name":"timpler"},"license":"MIT","bugs":{"url":"https://github.com/timpler/jquery.initialize/issues"},"homepage":"https://github.com/timpler/jquery.initialize#readme","gitHead":"c968d4c01528f906f70e98e864c5e49905d02f7c","_id":"jquery.initialize@1.1.0","_shasum":"8f1e0d7dc7559548670b4b6840427f1cf5e0e5f8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"timpler","email":"adam@pietrasiak.com"},"dist":{"shasum":"8f1e0d7dc7559548670b4b6840427f1cf5e0e5f8","tarball":"https://registry.npmjs.org/jquery.initialize/-/jquery.initialize-1.1.0.tgz","integrity":"sha512-g6YJjtC7BoB1+sX0ezBnDgQye6lldJPsziNkdGBrhEvpV7zr+16ruLj3wIhbpNlHQKdvwZdMwfkK5Z8+hoFE+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLgmQ9gQT6aazwrTpL/l3n9kcmrgTPFL+WFQFWURSi8wIhAKflMdKd5KyLeOom4ze7weFbzfddSq6w2IJlOmfrqw9L"}]},"maintainers":[{"name":"timpler","email":"adam@pietrasiak.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jquery.initialize-1.1.0.tgz_1494857762506_0.02202916261740029"},"directories":{}},"1.2.0":{"name":"jquery.initialize","version":"1.2.0","description":"jQuery plugin for dynamically created elements initialization","main":"jquery.initialize.js","scripts":{"test":""},"repository":{"type":"git","url":"git+https://github.com/timpler/jquery.initialize.git"},"author":{"name":"timpler"},"license":"MIT","bugs":{"url":"https://github.com/timpler/jquery.initialize/issues"},"homepage":"https://github.com/timpler/jquery.initialize#readme","gitHead":"5d72ac089491ecc685069029c88741d29dbb8acc","_id":"jquery.initialize@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"dbezborodov","email":"dbezborodov@gmail.com"},"dist":{"integrity":"sha512-eAnNsi1nR5vRqR1T/tN89azzVdxAbhP60aEOdMg0bkrpUpbTgAOtdgWCnnkl/Kx2vHIpe2C+Whx8h5l4n2q4Tw==","shasum":"8101fd27d473ba3e428a1d097fe3bf0e9b0b27a3","tarball":"https://registry.npmjs.org/jquery.initialize/-/jquery.initialize-1.2.0.tgz","fileCount":8,"unpackedSize":17929,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdExJgbGDcN+aocu//ufeO/g+X7eCXwiBTwGCcwORr9AiAWYHYjH8/6+MpavkzUk51YrpzTFguY3zKSfUpa+Gk1Ww=="}]},"maintainers":[{"email":"dbezborodov@gmail.com","name":"dbezborodov"},{"email":"adam@pietrasiak.com","name":"timpler"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery.initialize_1.2.0_1523337118437_0.4144760700201253"},"_hasShrinkwrap":false},"1.3.0":{"name":"jquery.initialize","version":"1.3.0","description":"jQuery plugin for dynamically created elements initialization","main":"jquery.initialize.js","scripts":{"test":""},"repository":{"type":"git","url":"git+https://github.com/timpler/jquery.initialize.git"},"author":{"name":"timpler"},"license":"MIT","bugs":{"url":"https://github.com/timpler/jquery.initialize/issues"},"homepage":"https://github.com/timpler/jquery.initialize#readme","gitHead":"0483bafc8eefe186a52ccbc3cbc0d1ac11c0d00b","_id":"jquery.initialize@1.3.0","_npmVersion":"6.1.0","_nodeVersion":"9.3.0","_npmUser":{"name":"dbezborodov","email":"dbezborodov@gmail.com"},"dist":{"integrity":"sha512-BmGOHcCHHknCIOhifdqr10/3RSNGuLn+ZwocvpXmfsO/fOKji1Hs2RCWr93yJ1/kz6B3Q+n3WLUN1l2xk57gGw==","shasum":"3eeb8ea2c4059bda2747abb9a2efeedc8bfc34ab","tarball":"https://registry.npmjs.org/jquery.initialize/-/jquery.initialize-1.3.0.tgz","fileCount":8,"unpackedSize":18877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbKheJCRA9TVsSAnZWagAA9VsQAJ0/bnVGFlgcdD19/Zi8\n2JlOjjtLkxKaDXtjZCgLwiyy5QScrp4XZqwmpp5xYQWndpmMl0qj+Bm8bcP6\nigT9Ga6e2QL7pc/TTLPpQBkIohkmQaGtwp00MOoAqNrS6dq9u6PF0nGyT2cG\nwUBOWpZQd4d+ZihSHkQpOZKrryRLkV6tAJySDDj0o+9wyRzVN6U9/oQ4gYUw\nUt+8KLpBo6aYa4+RzgRpWZ9cvvQNZAZiNrpN0Si/PVT1k5+W4vk6mHVh2RHu\niXYjhxezTPuK62YwsosOPdjkmdlZb2yqh0e2EjBXcs/fk8SYrYQQB3u6yKMj\n1vBTsTUWMyRP19+jJhbqk5O6i2pNorIro5sjsjwdowvrsJu9FBf+WagN+98x\nvdqNhZ8AcWQzBoHPYxnrE3cbPHqxx+26mMcLe4r1JVjs23dOiC1m1pICHjd/\nGicvj50fAWrVC7ZWt3sQYKAlysL4F+22gOFyMjTDLqXftfxF09tyvqUByTIn\nfPm2C9zf50okZ1WRrK+FS1yPiL4A+ZW/hZMJHPTTj42FkZha3bXglKVEOYoU\nowri8NES7QqP5V6MwRa4Nqg3vWut/27U3F1hEj4hhnOZSSY06yN5iadHjxpZ\nYdpM/gu4SnJG+C7TY9VFzZJNuQv8SB7QTkL0eze/5NM5Ey+19qz+kQ7QzAw0\nMI3q\r\n=7Zqr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfBdG5unTuYedOBDwy3s9GFQo6biuggcCALMz8UnY8TwIhAIwk04uVQ1kTGzYTMp4/n55PZWWiyQEHRW+OFmc819Dk"}]},"maintainers":[{"email":"dbezborodov@gmail.com","name":"dbezborodov"},{"email":"adam@pietrasiak.com","name":"timpler"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery.initialize_1.3.0_1529485192929_0.5679684821962214"},"_hasShrinkwrap":false},"1.3.1":{"name":"jquery.initialize","version":"1.3.1","description":"jQuery plugin for dynamically created elements initialization","main":"jquery.initialize.js","scripts":{"test":""},"repository":{"type":"git","url":"git+https://github.com/pie6k/jquery.initialize.git"},"author":{"name":"pie6k"},"license":"MIT","bugs":{"url":"https://github.com/pie6k/jquery.initialize/issues"},"homepage":"https://github.com/pie6k/jquery.initialize#readme","gitHead":"c342d4d61d1617f3cce09c8c1feb47c07c208314","_id":"jquery.initialize@1.3.1","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-jQzVQaUi89m0J1tJS9USY13JIaSE/qxcYzvd+Gi1Prum9q8FOdxLGkHLktdqgJ1R1MWlFKhscIkG9K2BJKZ2ag==","shasum":"96c6da43dbc555b615513639b971c7d0b5332dc1","tarball":"https://registry.npmjs.org/jquery.initialize/-/jquery.initialize-1.3.1.tgz","fileCount":8,"unpackedSize":20107,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZSQDDW9AgUsprwsFsT3XvSCGnK4jaVXkaPiEHo/koggIgWKu6jLIN+BE4KYV/930ueL1M5FOT0GfR0gqp/2UPkog="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2NhZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDmA/+KSLLMK5Y51XrhFNzkchuEIaGtT1Xxxb2GtkSLi/Alxuh4Wjc\r\nLRXTG/8dIxPeVsg1/gCfM7I3MbpXE2wRHnuVcZcnM5HVM3sVPFKNpSu2KluS\r\n8tTSzZSk10nsJ1A2ZerU7SWBSjlyZLlh5Xmd+kUr6slB0Vv3XKLzWcMazWho\r\nBorIOqaWzma0gpKqJNQ95g0zbSom4jM4h3O68nDOUD2DyiKKVkdPa+YZKOxo\r\n0NaGK9rPjwBQkAKIrJWi4OTc5kE5Kbq7S83ikA9bBysR+s8OY1D9Yd2BIEtg\r\nkMfRy0dizXstCisfcMgV/T33D6KItCi8IBSUzhn/bWGpqCJiTPDLpBXqW+gF\r\nTq0G1FSJVAIVL2l7OQDHsEgmPTwZI3cma9nUPQDQZ+l+o1MYnIZy1UNFD7yK\r\no/zSno8p258IRPUk4CnbvWULhSqRkdZHw78VHTregVlaW2sTBoshaYpdC4RA\r\nuquFTlIw7XR2adZFaSfDo2Jbm3TQBtXJQUjThgo+/PuPVDn5hwEXNdeqdJwr\r\ngQgvcTH8h7/VBTdd92htQQBTWdCGgqFzeC2nkjpbjJWgeyT3GsmGm1GrdUJ6\r\n9iW7XGzMPLxR3/2XbJCsCNsloWbh87U+D1ke+MSDT1x7VEcG+oHEQIFDwXId\r\nL5kTnSkIzc6C4hKU7iZkFbcK9Bpr4wBnl10=\r\n=MnPS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dbezborodov","email":"dbezborodov@gmail.com"},"directories":{},"maintainers":[{"name":"pie6k","email":"adam@pietrasiak.com"},{"name":"dbezborodov","email":"dbezborodov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery.initialize_1.3.1_1675155545496_0.4610729030708016"},"_hasShrinkwrap":false},"1.3.2":{"name":"jquery.initialize","version":"1.3.2","description":"jQuery plugin for dynamically created elements initialization","main":"jquery.initialize.js","scripts":{"test":""},"repository":{"type":"git","url":"git+https://github.com/pie6k/jquery.initialize.git"},"author":{"name":"pie6k"},"license":"MIT","bugs":{"url":"https://github.com/pie6k/jquery.initialize/issues"},"homepage":"https://github.com/pie6k/jquery.initialize#readme","gitHead":"69331d8a12d25268a79d866f09757dc30a96c368","_id":"jquery.initialize@1.3.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-SmuziUDtYYvu3ARjudZ/UpupL94LqjqhxjVjjIHUzD6XvyF/cOPk03b94SnE8u26CQ6g8lQRQK0H2SDa02IPYQ==","shasum":"46297c636104b3df53d6b16a7d766f38892737fc","tarball":"https://registry.npmjs.org/jquery.initialize/-/jquery.initialize-1.3.2.tgz","fileCount":8,"unpackedSize":21521,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKibU05fh9+3zl8SMedsWcYABC/dAjvCFSfv0gypfV7gIhAPFx0IEHpuMTQQOV4/kB9SEbiyTPJlHFHXi4vzKZ+kby"}]},"_npmUser":{"name":"dbezborodov","email":"dbezborodov@gmail.com"},"directories":{},"maintainers":[{"name":"pie6k","email":"adam@pietrasiak.com"},{"name":"dbezborodov","email":"dbezborodov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jquery.initialize_1.3.2_1687541070725_0.5078523476358039"},"_hasShrinkwrap":false}},"readme":"**Note from author (pie6k). I've created this lib few years ago and it was nice\nback then. Now you should probably not be using jQuery for things like that and\ngo with [React](https://react.dev/) or something similar. Thank you.**\n—*2018-11-21*\n\n**Another note (bezborodow). The [Web\nComponents](https://developer.mozilla.org/en-US/docs/Web/API/Web_components)\nsuite is now widely adopted natively by most modern browsers as a standardised\nfeature such that it can now be used efficiently (without the overhead of\n[`MutationObserver`](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver))\nto achieve the same objectives as this library originally intended to\nfacilitate.** —*2023-05-27*\n\n# jQuery.initialize\n\n**`jQuery.initialize`** plugin is created to help maintain dynamically created\nelements on the page.\n\n## Synopsis\n\njQuery.initialize will iterate over each element that matches the selector and\napply the callback function. It will then listen for any changes to the\n[Document Object Model](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model)\nand apply the callback function to any new elements inserted into to the\ndocument that match the original selector.\n\n    $.initialize([selector], [callback]);\n\nThis allows developers to define an initialisation callback that is applied\nwhenever a new element matching the selector is inserted into the DOM. It works\nfor elements loaded via AJAX also.\n\nSimple demo - [click here](https://pie6k.github.io/jquery.initialize/test.html)\n\n## Example of use\n  \n    $.initialize(\".some-element\", function() {\n        $(this).css(\"color\", \"blue\");\n    });\n\t\nBut now if new element matching `.some-element` selector will appear on page,\nit will be instantly initialised. The way new item is added is not important,\nyou do not need to care about any callbacks etc.\n  \n    $(\"<div/>\").addClass(\"some-element\").appendTo(\"body\"); //new element will have blue color!\n\n### Unobserving\n\nTo cease observation of the document, you may disconnect the observer by\ncalling `disconnect()` on the returned\n[`MutationObserver`](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver)\ninstance which stops it from receiving further notifications until and unless\n`observe()` is called again.  . E.g.,\n\n    var obs = $.initialize([selector], [callback]); // Returns MutationObserver\n    obs.disconnect();\n\n## Options\n\n### `target`\n\nBy default, the entire document is observed for changes. This may result in\npoor performance. A specific node in the DOM can be observed by specifying a\ntarget:\n\n    $.initialize(\".some-element\", function() {\n        $(this).css(\"color\", \"blue\");\n    }, { target: document.getElementById('observe-this-element') });\n    \nOtherwise, target will default to `document.documentElement`.\n\n### `observer`\n\nA custom\n[`MutationObserverInit`](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver#MutationObserverInit)\nmay be provided. If not provided, it will default to internal configuration.\n\n## Browser Compatibility\n\nPlugin is based on **`MutationObserver`**. It will works on IE9+ (**read note\nbelow**) and every modern browser.\n\nNote: To make it work on IE9 and IE10 you'll need to add MutationObserver\npolyfill - like ones here: <https://github.com/webcomponents/webcomponentsjs>\n\n-----------------\n[Performance test](https://jsfiddle.net/x8vtfxtb/5/) (thanks to **@bezborodow** and **@liuhongbo**)\n\n## Todo\n\n - make it `bower` and `npm` compatible, add advanced performance test.\n\n## Contributors\n- [Adam Pietrasiak](https://github.com/pie6k)\n- [Damien Bezborodov](https://github.com/bezborodow)\n- [Michael Hulse](https://github.com/mhulse)\n","maintainers":[{"name":"pie6k","email":"adam@pietrasiak.com"},{"name":"dbezborodov","email":"dbezborodov@gmail.com"}],"time":{"modified":"2023-06-23T17:24:31.034Z","created":"2017-05-15T14:16:03.487Z","1.1.0":"2017-05-15T14:16:03.487Z","1.2.0":"2018-04-10T05:11:58.513Z","1.3.0":"2018-06-20T08:59:52.998Z","1.3.1":"2023-01-31T08:59:05.662Z","1.3.2":"2023-06-23T17:24:30.924Z"},"homepage":"https://github.com/pie6k/jquery.initialize#readme","repository":{"type":"git","url":"git+https://github.com/pie6k/jquery.initialize.git"},"author":{"name":"pie6k"},"bugs":{"url":"https://github.com/pie6k/jquery.initialize/issues"},"license":"MIT","readmeFilename":"README.md"}