Comparing version 3.3.4 to 3.4.0
@@ -5,2 +5,5 @@ # on-load Change Log | ||
## 3.4.0 - 2018-22-18 | ||
* Observer attached further up the DOM to `document.documentElement` instead of `body` | ||
## 3.3.4 - 2017-12-03 | ||
@@ -7,0 +10,0 @@ * Fix node export |
@@ -32,3 +32,3 @@ /* global MutationObserver */ | ||
function beginObserve (observer) { | ||
observer.observe(document.body, { | ||
observer.observe(document.documentElement, { | ||
childList: true, | ||
@@ -35,0 +35,0 @@ subtree: true, |
{ | ||
"name": "on-load", | ||
"version": "3.3.4", | ||
"version": "3.4.0", | ||
"description": "On load/unload events for DOM elements using a MutationObserver", | ||
@@ -5,0 +5,0 @@ "main": "server.js", |
@@ -38,3 +38,3 @@ # on-load | ||
# license | ||
(c) 2016 Kyle Robinson Young. MIT License | ||
(c) 2018 Kyle Robinson Young. MIT License | ||
@@ -41,0 +41,0 @@ [npm-image]: https://img.shields.io/npm/v/on-load.svg?style=flat-square |
6165