Fix errors

This commit is contained in:
Samuel Elliott 2018-05-15 20:07:34 +01:00
parent f2159f1031
commit d7f4c651b6
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@
* LICENSE file in the root directory of this source tree.
*/
import { ClientLogger as Logger } from 'common';
class BdNode {
constructor(tag, className, id) {
this.element = document.createElement(tag);
@ -81,7 +83,7 @@ export class DOMObserver {
}
unsubscribeAll() {
this.subscriptions.splice(index, this.subscriptions.length);
this.subscriptions.splice(0, this.subscriptions.length);
}
}