|
@@ -78,7 +78,9 @@ export class Drawer {
|
|
}
|
|
}
|
|
|
|
|
|
addAction (action) {
|
|
addAction (action) {
|
|
- this.drawerManager.addAction(action);
|
|
|
|
|
|
+ try { // To avoid 'TypeError: cyclic object value'
|
|
|
|
+ this.drawerManager.addAction(action);
|
|
|
|
+ } catch (error) { console.log("drawer.js!addAction(action): Error '" + error + "'"); }
|
|
}
|
|
}
|
|
|
|
|
|
static setMaxIndex (object) {
|
|
static setMaxIndex (object) {
|