This repository was archived by the owner on Mar 18, 2024. It is now read-only.
File tree 2 files changed +17
-63
lines changed 2 files changed +17
-63
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"dependencies" : {
5
5
"monapt" : " git://github.com/yaakaito/monapt.git#~0.1.0"
6
- }
6
+ },
7
+ "main" : [
8
+ " dddbase.js" ,
9
+ " dddbase.min.js" ,
10
+ " dddbase.d.ts"
11
+ ],
12
+ "ignore" : [
13
+ " Gruntfile.coffee" ,
14
+ " .gitattriute" ,
15
+ " .gitignore" ,
16
+ " package.json" ,
17
+ " testem.json" ,
18
+ " definitions/" ,
19
+ " src/" ,
20
+ " test/" ,
21
+ " build/"
22
+ ]
7
23
}
Original file line number Diff line number Diff line change 1
- var __extends = this . __extends || function ( d , b ) {
2
- for ( var p in b ) if ( b . hasOwnProperty ( p ) ) d [ p ] = b [ p ] ;
3
- function __ ( ) { this . constructor = d ; }
4
- __ . prototype = b . prototype ;
5
- d . prototype = new __ ( ) ;
6
- } ;
7
- var DDD ;
8
- ( function ( DDD ) {
9
- var Identity = ( function ( ) {
10
- function Identity ( value ) {
11
- this . value = value ;
12
- }
13
- Identity . prototype . getValue = function ( ) {
14
- return this . value ;
15
- } ;
16
-
17
- Identity . prototype . equals = function ( that ) {
18
- if ( that == null ) {
19
- return false ;
20
- }
21
- if ( this == that ) {
22
- return true ;
23
- }
24
-
25
- return this . value === that . getValue ( ) ;
26
- } ;
27
- return Identity ;
28
- } ) ( ) ;
29
- DDD . Identity = Identity ;
30
-
31
- var NumberIdentity = ( function ( _super ) {
32
- __extends ( NumberIdentity , _super ) ;
33
- function NumberIdentity ( value ) {
34
- _super . call ( this , value ) ;
35
- }
36
- return NumberIdentity ;
37
- } ) ( Identity ) ;
38
- DDD . NumberIdentity = NumberIdentity ;
39
- } ) ( DDD || ( DDD = { } ) ) ;
40
- var DDD ;
41
- ( function ( DDD ) {
42
- var Entity = ( function ( ) {
43
- function Entity ( identity ) {
44
- this . identity = identity ;
45
- }
46
- Entity . prototype . getIdentity = function ( ) {
47
- return this . identity ;
48
- } ;
49
-
50
- Entity . prototype . equals = function ( that ) {
51
- if ( that == null ) {
52
- return false ;
53
- }
54
- if ( this == that ) {
55
- return true ;
56
- }
57
- return this . identity . equals ( that . getIdentity ( ) ) ;
58
- } ;
59
- return Entity ;
60
- } ) ( ) ;
61
- DDD . Entity = Entity ;
62
- } ) ( DDD || ( DDD = { } ) ) ;
You can’t perform that action at this time.
0 commit comments