main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
415 bytes
|
Line | |
---|
1 | import stampit from 'stampit';
|
---|
2 | const Reference = stampit({
|
---|
3 | props: {
|
---|
4 | uri: '',
|
---|
5 | value: null,
|
---|
6 | depth: 0,
|
---|
7 | refSet: null,
|
---|
8 | errors: []
|
---|
9 | },
|
---|
10 | init({
|
---|
11 | depth = this.depth,
|
---|
12 | refSet = this.refSet,
|
---|
13 | uri = this.uri,
|
---|
14 | value = this.value
|
---|
15 | } = {}) {
|
---|
16 | this.uri = uri;
|
---|
17 | this.value = value;
|
---|
18 | this.depth = depth;
|
---|
19 | this.refSet = refSet;
|
---|
20 | this.errors = [];
|
---|
21 | }
|
---|
22 | });
|
---|
23 | export default Reference; |
---|
Note:
See
TracBrowser
for help on using the repository browser.