Comparing version 0.2.3 to 0.2.4
@@ -78,3 +78,4 @@ "use strict"; | ||
if (observers && observers.has(observer)) { | ||
if (observers.size > 1) { | ||
var count = observers.size - 1; | ||
if (count) { | ||
observers.delete(observer); | ||
@@ -86,3 +87,3 @@ } | ||
if (target.observerRemoved) { | ||
target.observerRemoved(observers.size, observer); | ||
target.observerRemoved(count, observer); | ||
} | ||
@@ -89,0 +90,0 @@ } |
@@ -70,3 +70,4 @@ var $get = Symbol.for('FluidValue.get'); | ||
if (observers && observers.has(observer)) { | ||
if (observers.size > 1) { | ||
var count = observers.size - 1; | ||
if (count) { | ||
observers.delete(observer); | ||
@@ -78,3 +79,3 @@ } | ||
if (target.observerRemoved) { | ||
target.observerRemoved(observers.size, observer); | ||
target.observerRemoved(count, observer); | ||
} | ||
@@ -81,0 +82,0 @@ } |
{ | ||
"name": "fluids", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Glue layer for reactivity", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index", |
@@ -164,3 +164,4 @@ const $get = Symbol.for('FluidValue.get') | ||
if (observers && observers.has(observer)) { | ||
if (observers.size > 1) { | ||
const count = observers.size - 1 | ||
if (count) { | ||
observers.delete(observer) | ||
@@ -171,3 +172,3 @@ } else { | ||
if (target.observerRemoved) { | ||
target.observerRemoved(observers.size, observer) | ||
target.observerRemoved(count, observer) | ||
} | ||
@@ -174,0 +175,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
26207
472