@@ -34,15 +34,15 @@ var PreviewView = RenderableView.extend({
34
34
setupEventListeners : function ( ) {
35
35
RenderableView . prototype . setupEventListeners . call ( this ) ;
36
36
var child = this . model . get ( 'child' ) ;
37
- this . listenTo ( child , 'change' , this . onChildChange . bind ( this ) ) ;
37
+ this . listenTo ( child , 'change' , this . onChildChanged . bind ( this ) ) ;
38
38
if ( child . obj . isObject3D ) {
39
39
// Since we use clone for objects, we need to rebuild for
40
40
// any nested change instead of just rerendering.
41
- this . listenTo ( child , 'childchange' , this . onChildChange . bind ( this ) ) ;
41
+ this . listenTo ( child , 'childchange' , this . onChildChanged . bind ( this ) ) ;
42
42
}
43
43
} ,
44
44
45
- onChildChange : function ( ) {
45
+ onChildChanged : function ( ) {
46
46
// Enabling this line will reset the camera
47
47
// when any changes are made to the child
48
48
//this._resetCameraNeeded = true;
@@ -257,11 +257,11 @@ var PreviewModel = RenderableModel.extend({
257
257
258
258
setupListeners : function ( ) {
259
259
var child = this . get ( 'child' ) ;
260
- this . listenTo ( child , 'change' , this . onChildChange . bind ( this ) ) ;
261
- this . listenTo ( child , 'childchange' , this . onChildChange . bind ( this ) ) ;
260
+ this . listenTo ( child , 'change' , this . onChildChanged . bind ( this ) ) ;
261
+ this . listenTo ( child , 'childchange' , this . onChildChanged . bind ( this ) ) ;
262
262
} ,
263
263
264
- onChildChange : function ( model , options ) {
264
+ onChildChanged : function ( model , options ) {
265
265
this . trigger ( 'rerender' , this , { } ) ;
266
266
} ,
267
267
0 commit comments