@@ -3,11 +3,11 @@ var git = require( '../' );
33var _Object = function ( obj ) {
44 var self = { } ;
55
6- if ( obj instanceof git . raw . Object ) {
7- self . obj = obj ;
6+ if ( object instanceof git . raw . Object ) {
7+ self . object = obj ;
88 }
99 else {
10- self . obj = new git . raw . Object ( ) ;
10+ self . object = new git . raw . Object ( ) ;
1111 }
1212
1313 Object . defineProperty ( self , 'id' , {
@@ -18,54 +18,54 @@ var _Object = function( obj ) {
1818
1919 Object . defineProperty ( self , 'type' , {
2020 get : function ( ) {
21- return self . obj . type ( ) ;
21+ return self . object . type ( ) ;
2222 } ,
2323 enumerable : true
2424 } ) ;
2525
2626 Object . defineProperty ( self , 'length' , {
2727 get : function ( ) {
28- return self . obj . size ( ) ;
28+ return self . object . size ( ) ;
2929 } ,
3030 enumerable : true
3131 } ) ;
3232
3333 Object . defineProperty ( self , 'isLoose' , {
3434 get : function ( ) {
35- return self . obj . typeIsLoose ( ) ;
35+ return self . object . typeIsLoose ( ) ;
3636 } ,
3737 enumerable : true
3838 } ) ;
3939
4040 self . id = function ( ) {
4141 var oid = git . oid ( ) ;
4242
43- self . obj . id ( oid . oid ) ;
43+ self . object . id ( oid . oid ) ;
4444
4545 return oid ;
4646 } ;
4747
4848 self . owner = function ( ) {
4949 var repo = git . repo ( ) ;
5050
51- self . obj . owner ( repo . repo ) ;
51+ self . object . owner ( repo . repo ) ;
5252
5353 return repo ;
5454 } ;
5555
5656 self . toString = function ( ) {
57- return self . obj . type2String ( ) ;
57+ return self . object . type2String ( ) ;
5858 } ;
5959
6060 self . toType = function ( type ) {
61- return self . obj . toType ( type ) ;
61+ return self . object . toType ( type ) ;
6262 } ;
6363
6464 self . free = function ( ) {
65- return self . obj . free ( ) ;
65+ return self . object . free ( ) ;
6666 } ;
6767
6868 return self ;
6969} ;
7070
71- exports . obj = _Object ;
71+ exports . object = _Object ;
0 commit comments