pict 1.0.104 → 1.0.105
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,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pict browser shim loader
|
|
3
3
|
* @author <steven@velozo.com>
|
|
4
|
-
*
|
|
5
|
-
* This was born after writing about 10 views and copying basically the same
|
|
6
|
-
* mock environment read/write functions into the test harnesses. It allows
|
|
4
|
+
*
|
|
5
|
+
* This was born after writing about 10 views and copying basically the same
|
|
6
|
+
* mock environment read/write functions into the test harnesses. It allows
|
|
7
7
|
* mocks or other types of communications back-and-forth to be configured
|
|
8
8
|
* as an environment for views and applications.
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
10
|
* To use this:
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
12
|
* 1. Construct a pict object in your favorite fashion:
|
|
13
13
|
* let _Pict = new libPict({...Environment})
|
|
14
|
-
* 2. Require this; it's exported as a static subobject of the pict library,
|
|
14
|
+
* 2. Require this; it's exported as a static subobject of the pict library,
|
|
15
15
|
* so you can do:
|
|
16
16
|
* const libPictEnvironmentLog = require('pict').EnvironmentLog;
|
|
17
17
|
* 3. Create an object that is your custom read data. Any key that is requested
|
|
@@ -42,7 +42,7 @@ class PictEnvironmentLog
|
|
|
42
42
|
this.eventLog.Assign = [];
|
|
43
43
|
|
|
44
44
|
this.pict.ContentAssignment.customGetElementFunction = this.customGetElementFunction.bind(this);
|
|
45
|
-
this.pict.ContentAssignment.customReadFunction = this.
|
|
45
|
+
this.pict.ContentAssignment.customReadFunction = this.customReadFunction.bind(this);
|
|
46
46
|
this.pict.ContentAssignment.customAppendFunction = this.customAppendFunction.bind(this);
|
|
47
47
|
this.pict.ContentAssignment.customPrependFunction = this.customPrependFunction.bind(this)
|
|
48
48
|
this.pict.ContentAssignment.customAssignFunction = this.customAssignFunction.bind(this);
|