Merge branch 'master' into 0.17

This commit is contained in:
Nick O'Leary
2017-05-11 15:10:12 +01:00
4 changed files with 24 additions and 21 deletions

View File

@@ -65,7 +65,7 @@ Node.prototype.updateWires = function(wires) {
}
Node.prototype.context = function() {
if (!this._context) {
this._context = context.get(this._alias||this.id,this.z);
this._context = context.get(this._alias||this.id,this.z);
}
return this._context;
}

View File

@@ -47,9 +47,9 @@ function getContext(localId,flowId) {
var newContext = createContext(contextId);
if (flowId) {
newContext.flow = getContext(flowId);
if (globalContext) {
newContext.global = globalContext;
}
}
if (globalContext) {
newContext.global = globalContext;
}
contexts[contextId] = newContext;
return newContext;