pict 1.0.60 → 1.0.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "Pict browser library.",
5
5
  "main": "source/Pict.js",
6
6
  "scripts": {
@@ -28,6 +28,17 @@ class PictApplication extends libFableServiceBase
28
28
 
29
29
  this.initializationFunctionSet = [];
30
30
 
31
+ let tmpManifestKeys = Object.keys(this.options.Manifests);
32
+ if (tmpManifestKeys.length > 0)
33
+ {
34
+ for (let i = 0; i < tmpManifestKeys.length; i++ )
35
+ {
36
+ // Load each manifest
37
+ let tmpManifestKey = tmpManifestKeys[i];
38
+ this.fable.serviceManager.instantiateServiceProvider('Manifest', this.options.Manifests[tmpManifestKey], tmpManifestKey);
39
+ }
40
+ }
41
+
31
42
  this.fable.Utility.waterfall(
32
43
  [
33
44
  (fStageComplete) =>
@@ -80,20 +91,6 @@ class PictApplication extends libFableServiceBase
80
91
  this.log.info(`Pict Application ${this.options.Name}[${this.UUID}]::[${this.Hash}] beginning initialization...`);
81
92
  return fStageComplete();
82
93
  },
83
- (fStageComplete) =>
84
- {
85
- let tmpManifestKeys = Object.keys(this.options.Manifests);
86
- if (tmpManifestKeys.length > 0)
87
- {
88
- for (let i = 0; i < tmpManifestKeys.length; i++ )
89
- {
90
- // Load each manifest
91
- let tmpManifestKey = tmpManifestKeys[i];
92
- this.fable.serviceManager.instantiateServiceProvider('Manifest', this.options.Manifests[tmpManifestKey], tmpManifestKey);
93
- }
94
- }
95
- return fStageComplete();
96
- },
97
94
  this.internalInitialize],
98
95
  ...this.initializationFunctionSet,
99
96
  ...[
package/source/Pict.js CHANGED
@@ -23,6 +23,20 @@ class Pict extends libFable
23
23
 
24
24
  this.Bundle = {};
25
25
 
26
+ if (typeof(this.settings.Manifests) == 'object')
27
+ {
28
+ let tmpManifestKeys = Object.keys(this.settings.Manifests);
29
+ if (tmpManifestKeys.length > 0)
30
+ {
31
+ for (let i = 0; i < tmpManifestKeys.length; i++ )
32
+ {
33
+ // Load each manifest
34
+ let tmpManifestKey = tmpManifestKeys[i];
35
+ this.serviceManager.instantiateServiceProvider('Manifest', this.options.Manifests[tmpManifestKey], tmpManifestKey);
36
+ }
37
+ }
38
+ }
39
+
26
40
  this._DefaultPictTemplatesInitialized = false;
27
41
  this.initializePictTemplates();
28
42