Commit 8f96c88 1 parent 8912c1d commit 8f96c88 Copy full SHA for 8f96c88
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class AdaptView extends Backbone.View {
24
24
'change:_isHidden' : this . toggleHidden ,
25
25
'change:_isComplete' : this . onIsCompleteChange
26
26
} ) ;
27
- this . isJSX = ( this . constructor . template || '' ) . includes ( '.jsx' ) ;
27
+ this . isJSX = ( this . template || this . constructor . template || '' ) . includes ( '.jsx' ) ;
28
28
if ( this . isJSX ) {
29
29
this . _classSet = new Set ( _ . result ( this , 'className' ) . trim ( ) . split ( / \s + / ) ) ;
30
30
this . listenTo ( this . model , 'change' , this . changed ) ;
@@ -100,7 +100,7 @@ class AdaptView extends Backbone.View {
100
100
// Add globals
101
101
_globals : Adapt . course . get ( '_globals' )
102
102
} ;
103
- const Template = templates [ this . constructor . template . replace ( '.jsx' , '' ) ] ;
103
+ const Template = templates [ ( this . template || this . constructor . template ) . replace ( '.jsx' , '' ) ] ;
104
104
this . updateViewProperties ( ) ;
105
105
ReactDOM . render ( < Template { ...props } /> , this . el ) ;
106
106
}
You can’t perform that action at this time.
0 commit comments