nanocomponent
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -5,2 +5,6 @@ # nanocomponent Change Log | ||
## 6.0.1 - 2017-08-09 | ||
- **Fixed**: [[`f9f7540415`](https://github.com/choojs/nanocomponent/commit/f9f7540415)] - load & unload callbacks should be passed el (timwis) | ||
## 6.0.0 - 2017-08-09 | ||
@@ -7,0 +11,0 @@ |
@@ -96,14 +96,14 @@ var document = require('global/document') | ||
Nanocomponent.prototype._handleLoad = function () { | ||
Nanocomponent.prototype._handleLoad = function (el) { | ||
var self = this | ||
if (this._loaded) return // Debounce child-reorders | ||
this._loaded = true | ||
if (this.load) window.requestAnimationFrame(function () { self.load() }) | ||
if (this.load) window.requestAnimationFrame(function () { self.load(el) }) | ||
} | ||
Nanocomponent.prototype._handleUnload = function () { | ||
Nanocomponent.prototype._handleUnload = function (el) { | ||
var self = this | ||
if (this.element) return // Debounce child-reorders | ||
this._loaded = false | ||
if (this.unload) window.requestAnimationFrame(function () { self.unload() }) | ||
if (this.unload) window.requestAnimationFrame(function () { self.unload(el) }) | ||
} | ||
@@ -110,0 +110,0 @@ |
{ | ||
"name": "nanocomponent", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Native DOM components that pair nicely with DOM diffing algorithms", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36348