import App from "./App";

export default class Action {
    dispatchAction(...args) {
        return App.dispatchAction(...args);
    }

    get logger() {
        return App.logger(this.ns);
    }

    get events() {
        return App.events;
    }

    publish(ev, ...args) {
        return App.events.publish(`${this.ns}.${ev}`, ...args);
    }

    get ns() {
        return this._ns || "app";
    }
    set ns(namespace) {
        this._ns = namespace;
    }

    static ns(key) { // Decorator for easily adding namespace.
        return (ActionWithNS) => ActionWithNS.prototype.ns = key;
    }
}

@@ -554,16 +554,30 @@
 thNS) =%3E
+ %7B%0A           
  ActionW
@@ -602,16 +602,27 @@
  = key;%0A
+        %7D;%0A
     %7D%0A%7D%0A

Fix `ns` decorator. Don't return a value.