smart-sections
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -599,3 +599,3 @@ 'use strict'; | ||
Object.keys(sections).forEach(function (sectionName) { | ||
if (sectionCallbacks.get(sectionName).size) { | ||
if (sectionCallbacks.get(sectionName) && sectionCallbacks.get(sectionName).size) { | ||
sectionCallbacks.get(sectionName).forEach(function (callback) { | ||
@@ -631,3 +631,3 @@ if (typeof callback === 'function') { | ||
unregisterSectionSpy: function unregisterSectionSpy(sectionName, callback) { | ||
if (sectionCallbacks.has(sectionName).size) { | ||
if (sectionCallbacks.has(sectionName)) { | ||
sectionCallbacks.get(sectionName).delete(callback); | ||
@@ -634,0 +634,0 @@ } |
@@ -595,3 +595,3 @@ var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
Object.keys(sections).forEach(function (sectionName) { | ||
if (sectionCallbacks.get(sectionName).size) { | ||
if (sectionCallbacks.get(sectionName) && sectionCallbacks.get(sectionName).size) { | ||
sectionCallbacks.get(sectionName).forEach(function (callback) { | ||
@@ -627,3 +627,3 @@ if (typeof callback === 'function') { | ||
unregisterSectionSpy: function unregisterSectionSpy(sectionName, callback) { | ||
if (sectionCallbacks.has(sectionName).size) { | ||
if (sectionCallbacks.has(sectionName)) { | ||
sectionCallbacks.get(sectionName).delete(callback); | ||
@@ -630,0 +630,0 @@ } |
{ | ||
"name": "smart-sections", | ||
"version": "0.0.1", | ||
"description": | ||
"Framework agnostic, vertical scroll solution that follows what you actually read", | ||
"version": "0.0.2", | ||
"description": "Framework agnostic, vertical scroll solution that follows what you actually read", | ||
"main": "dist/bundle.cjs.js", | ||
"module": "dist/bundle.es.js", | ||
"jsnext:main": "dist/bundle.es.js", | ||
"files": ["dist"], | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": "git@github.com:netguru/smart-sections.git", | ||
"author": | ||
"Maciej Myśliński <hello@maciejmyslinski.com> (https://maciejmyslinski.com)", | ||
"author": "Maciej Myśliński <hello@maciejmyslinski.com> (https://maciejmyslinski.com)", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "private": false, |
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
42400