total5 0.0.9-6 → 0.0.9-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.txt +1 -0
- package/flow.js +15 -0
- package/package.json +1 -1
package/changelog.txt
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
- fixed `CONF.totalapi` key when initializing the framework
|
|
20
20
|
- added support for plugins in `TEMPLATE()` method
|
|
21
21
|
- fixed decoding of encoded HTML entities in the HTML parser
|
|
22
|
+
- fixed loading `empty` flow in `Flow.load()` method
|
|
22
23
|
|
|
23
24
|
========================
|
|
24
25
|
0.0.8
|
package/flow.js
CHANGED
|
@@ -151,6 +151,21 @@ FS.load = function(flow, callback) {
|
|
|
151
151
|
flow.directory = flow.directory || F.path.root('/flowstream/');
|
|
152
152
|
FS.db[id] = flow;
|
|
153
153
|
|
|
154
|
+
if (!flow.name)
|
|
155
|
+
flow.name = id;
|
|
156
|
+
|
|
157
|
+
if (!flow.components)
|
|
158
|
+
flow.components = {};
|
|
159
|
+
|
|
160
|
+
if (!flow.design)
|
|
161
|
+
flow.design = {};
|
|
162
|
+
|
|
163
|
+
if (!flow.sources)
|
|
164
|
+
flow.sources = {};
|
|
165
|
+
|
|
166
|
+
if (!flow.variables)
|
|
167
|
+
flow.variables = {};
|
|
168
|
+
|
|
154
169
|
FS.module.init(flow, flow.worker, function(err, instance) {
|
|
155
170
|
|
|
156
171
|
instance.onerror = FS.onerror;
|