Comparing version 1.5.3 to 1.5.4
{ | ||
"name": "pubsub-js", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "Dependency free publish/subscribe library", | ||
@@ -40,2 +40,2 @@ "main": "./src/pubsub.js", | ||
} | ||
} | ||
} |
@@ -61,3 +61,3 @@ # PubSubJS | ||
### Cancel specific subscripiton | ||
### Cancel specific subscription | ||
@@ -64,0 +64,0 @@ ```javascript |
@@ -24,3 +24,3 @@ /* | ||
factory(PubSub); | ||
}(( typeof window === 'object' && window ) || this, function (PubSub){ | ||
@@ -183,3 +183,3 @@ 'use strict'; | ||
PubSub.clearSubscriptions = function clearSubscriptions(topic){ | ||
var m; | ||
var m; | ||
for (m in messages){ | ||
@@ -219,3 +219,3 @@ if (messages.hasOwnProperty(m) && m.indexOf(topic) === 0){ | ||
if (isTopic){ | ||
delete messages[value]; | ||
PubSub.clearSubscriptions(value); | ||
return; | ||
@@ -222,0 +222,0 @@ } |
@@ -118,3 +118,3 @@ (function( global ){ | ||
PubSub.publishSync(topicA, TestHelper.getUniqueString()); | ||
PubSub.publishSync(topicC, TestHelper.getUniqueString()); | ||
@@ -121,0 +121,0 @@ assert(spyA.called); |
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
304222