Make actions private in panels and views
Change-Id: I3f2c68c6e51525bbba96c24c4fddf9f9498333b1
diff --git a/dev/js/src/panel/result.js b/dev/js/src/panel/result.js
index 1626a95..94ab856 100644
--- a/dev/js/src/panel/result.js
+++ b/dev/js/src/panel/result.js
@@ -34,7 +34,7 @@
// Add all result buttons in order
KorAP.Plugin
.buttonGroup("result")
- .forEach(i => this.actions.add.apply(this.actions, i));
+ .forEach(i => this.actions().add.apply(this.actions(), i));
KorAP.Plugin.clearButtonGroup("result");
};
@@ -51,7 +51,7 @@
addKqAction : function () {
// Open KoralQuery view
- const kqButton = this.actions.add(
+ const kqButton = this.actions().add(
loc.SHOW_KQ,
{'cls':['show-kq','button-icon']},
function () {
@@ -89,7 +89,7 @@
/**
* Toggle the alignment (left <=> right)
*/
- this.actions.add(loc.TOGGLE_ALIGN, {'cls':['align','right','button-icon']}, function (e) {
+ this.actions().add(loc.TOGGLE_ALIGN, {'cls':['align','right','button-icon']}, function (e) {
var olCl = d.querySelector('#search > ol').classList;
aRoll.find(function(align, i) {