Move otherwise redundant unsubscription
This commit is contained in:
parent
a3c273f802
commit
747f2b2847
1 changed files with 1 additions and 1 deletions
|
|
@ -5,9 +5,9 @@ var autoredraw = require("../api/autoredraw")
|
|||
|
||||
module.exports = function(renderer, pubsub) {
|
||||
return function(root, component) {
|
||||
pubsub.unsubscribe(root.redraw)
|
||||
if (component === null) {
|
||||
renderer.render(root, [])
|
||||
pubsub.unsubscribe(root.redraw)
|
||||
delete root.redraw
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue