File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default class extends Controller {
5
5
view : ObjectConstructor ;
6
6
} ;
7
7
private chart ;
8
- connect ( ) : void ;
8
+ initialize ( ) : void ;
9
9
viewValueChanged ( ) : void ;
10
10
private dispatchEvent ;
11
11
}
Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ class default_1 extends Controller {
10
10
super ( ...arguments ) ;
11
11
this . chart = null ;
12
12
}
13
- connect ( ) {
14
- if ( this . element instanceof HTMLCanvasElement && Chart . getChart ( this . element ) ) {
15
- return ;
16
- }
13
+ initialize ( ) {
17
14
if ( ! isChartInitialized ) {
18
15
isChartInitialized = true ;
19
16
this . dispatchEvent ( 'init' , {
Original file line number Diff line number Diff line change @@ -28,12 +28,7 @@ export default class extends Controller {
28
28
29
29
private chart : Chart | null = null ;
30
30
31
- connect ( ) {
32
- if ( this . element instanceof HTMLCanvasElement && Chart . getChart ( this . element ) ) {
33
- // Chart is already connected
34
- return ;
35
- }
36
-
31
+ initialize ( ) {
37
32
if ( ! isChartInitialized ) {
38
33
isChartInitialized = true ;
39
34
this . dispatchEvent ( 'init' , {
You can’t perform that action at this time.
0 commit comments