File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ class ThreeType extends BaseType {
66
66
getTraitlet ( ) {
67
67
let typeName = this . typeName ;
68
68
if ( typeName instanceof Array ) {
69
- for ( let tname of typeName ) {
69
+ typeName = typeName . map ( tname => {
70
70
return `${ tname || 'ThreeWidget' } ` ;
71
- }
71
+ } ) ;
72
72
} else {
73
73
typeName = `${ typeName || 'ThreeWidget' } ` ;
74
74
}
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ var BufferGeometryModel = AutogenBufferGeometryModel.extend({
65
65
return createModel ( modelCtor , this . widget_manager , kv [ 1 ] ) . then ( function ( model ) {
66
66
return [ kv [ 0 ] , model ] ;
67
67
} ) ;
68
- } ) ) ;
68
+ } , this ) ) ;
69
69
} ) . then ( function ( attribModelKVs ) {
70
70
toSet . attributes = _ . object ( attribModelKVs ) ;
71
71
@@ -75,7 +75,7 @@ var BufferGeometryModel = AutogenBufferGeometryModel.extend({
75
75
var modelCtor = kv [ 1 ] . isInterleavedBufferAttribute ? InterleavedBufferAttributeModel : BufferAttributeModel ;
76
76
return createModel ( modelCtor , this . widget_manager , kv [ 1 ] ) . then ( function ( model ) {
77
77
return [ kv [ 0 ] , model ] ;
78
- } ) ;
78
+ } , this ) ;
79
79
} ) ) ;
80
80
} ) . then ( function ( attribModelKVs ) {
81
81
toSet . morphAttributes = _ . object ( attribModelKVs ) ;
You can’t perform that action at this time.
0 commit comments