This repository was archived by the owner on Nov 13, 2019. It is now read-only.
File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 10
10
" package.json"
11
11
],
12
12
"dependencies" : {
13
- "ember-data" : " ^1.0.0-beta.8 " ,
13
+ "ember-data" : " ^1.0.0-beta.9 " ,
14
14
"ember-data.model-fragments" : " ^0.2.0"
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ var SchemaLoader;
36
36
var classes = schema . EmberSchema . classes ;
37
37
classes . forEach ( function ( def ) {
38
38
def . state = STATE_NEW ;
39
- def . mode = loader . getClassMode ( def ) ;
39
+ def . mode = MODE_NORMAL ;
40
+ loader . customizeClassDefinition ( def ) ;
40
41
loader . index . set ( def . name , def ) ;
41
42
} ) ;
42
43
@@ -127,10 +128,10 @@ var SchemaLoader;
127
128
128
129
/**
129
130
* @protected
130
- * @method includeProperty
131
+ * @method customizeClassDefinition
131
132
**/
132
- getClassMode : function ( def ) {
133
- return MODE_NORMAL ;
133
+ customizeClassDefinition : function ( def ) {
134
+ // do nothing by default
134
135
} ,
135
136
136
137
/**
@@ -185,7 +186,7 @@ var SchemaLoader;
185
186
} ) ;
186
187
187
188
function printClass ( c ) {
188
- console . log ( Ember . inspect ( c ) ) ;
189
+ console . log ( Ember . inspect ( c ) + ' extends ' + c . superclass ) ;
189
190
c . eachAttribute ( function ( n , a ) {
190
191
console . log ( '\t' + n + ':\t' + Ember . inspect ( a ) ) ;
191
192
} ) ;
You can’t perform that action at this time.
0 commit comments