pict 1.0.64 → 1.0.66

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/source/Pict.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "Pict browser library.",
5
5
  "main": "source/Pict.js",
6
6
  "scripts": {
package/source/Pict.js CHANGED
@@ -9,6 +9,8 @@ class Pict extends libFable
9
9
  {
10
10
  super(pSettings);
11
11
 
12
+ this.isBrowser = new Function("try {return (this===window);} catch(pError) {return false;}");
13
+
12
14
  // The templateProvider provides a basic key->template mapping with default fallback capabilities
13
15
  this.serviceManager.addAndInstantiateServiceType('TemplateProvider', require('./Pict-Template-Provider.js'));
14
16
  this.serviceManager.addAndInstantiateServiceType('EntityProvider', require('./Pict-Meadow-EntityProvider.js'));
@@ -72,11 +74,11 @@ class Pict extends libFable
72
74
 
73
75
  if (typeof(pApplicationPrototype) != 'undefined')
74
76
  {
75
- return this.serviceManager.instantiateServiceProviderFromPrototype('PictView', tmpOptions, tmpApplicationHash, pApplicationPrototype);
77
+ return this.serviceManager.instantiateServiceProviderFromPrototype('PictApplication', tmpOptions, tmpApplicationHash, pApplicationPrototype);
76
78
  }
77
79
  else
78
80
  {
79
- return this.serviceManager.instantiateServiceProvider('PictView', tmpOptions, tmpApplicationHash);
81
+ return this.serviceManager.instantiateServiceProvider('PictApplication', tmpOptions, tmpApplicationHash);
80
82
  }
81
83
  }
82
84