Comparing version 0.5.0 to 0.5.1
@@ -46,2 +46,5 @@ (function() { | ||
}, | ||
clear: function() { | ||
this._actionHandlers = {}; | ||
}, | ||
register: function(action, store) { | ||
@@ -48,0 +51,0 @@ if (this.registeredFor(action).indexOf(store) !== -1) return; |
{ | ||
"name": "docbrown", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Flux experiment.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11
test.js
@@ -119,2 +119,13 @@ var DocBrown = require("./"); | ||
}); | ||
describe("#clear()", function() { | ||
it("should clear registered action handlers", function() { | ||
dispatcher.register("foo", {a: 1}); | ||
dispatcher.register("bar", {b: 1}); | ||
dispatcher.clear(); | ||
expect(dispatcher.actionHandlers).eql({}); | ||
}); | ||
}); | ||
}); | ||
@@ -121,0 +132,0 @@ }); |
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
32972
681