Hotfix pins

This commit is contained in:
maciejhirsz
2018-10-05 18:47:20 +02:00
parent d299e2103a
commit 6dc1d532e7
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -119,6 +119,13 @@ export class Node {
}
}
public setPinned(pinned: boolean) {
if (this.pinned !== pinned) {
this.pinned = pinned;
this.trigger();
}
}
public subscribe(handler: (node: Node) => void) {
this.subscribtions.add(handler);
}