You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
First pass at linting lib dir
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
class NavService {
|
||||
|
||||
static async go(routeName) {
|
||||
if (this.handlers_.length) {
|
||||
let r = await this.handlers_[this.handlers_.length - 1]();
|
||||
@ -9,7 +8,7 @@ class NavService {
|
||||
this.dispatch({
|
||||
type: 'NAV_GO',
|
||||
routeName: routeName,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
static addHandler(handler) {
|
||||
@ -27,9 +26,8 @@ class NavService {
|
||||
if (h === hanlder) this.handlers_.splice(i, 1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
NavService.handlers_ = [];
|
||||
|
||||
module.exports = NavService;
|
||||
module.exports = NavService;
|
||||
|
Reference in New Issue
Block a user