Commit 54723d62 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

Workspace: fixed stateChanged event

was also emitted when the state did not actually change
parent 040a0772
...@@ -210,9 +210,13 @@ define([ ...@@ -210,9 +210,13 @@ define([
this.logger.debug(state); this.logger.debug(state);
var changed = this._state != state;
this._state = state; this._state = state;
this._vueData.state = state; this._vueData.state = state;
this.emit("stateChanged");
if (changed)
this.emit("stateChanged");
}, },
/** indent: 1 /** indent: 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment