Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nanocomponent

Package Overview
Dependencies
Maintainers
6
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanocomponent - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

4

CHANGELOG.md

@@ -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 @@

8

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc