1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure global context is seeded properly

This commit is contained in:
Nick O'Leary 2016-01-11 11:28:01 +00:00
parent 4fc568856a
commit db319e0ebc

View File

@ -19,7 +19,7 @@ var when = require("when");
var util = require("../util");
function createContext(id,seed) {
var data = {};
var data = seed || {};
var obj = seed || {};
obj.get = function get(key) {
return util.getMessageProperty(data,key);