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 @@ -26,12 +26,7 @@ export default class extends Controller {
26
26
27
27
private chart : Chart | null = null ;
28
28
29
- connect ( ) {
30
- if ( this . element instanceof HTMLCanvasElement && Chart . getChart ( this . element ) ) {
31
- // Chart is already connected
32
- return ;
33
- }
34
-
29
+ initialize ( ) {
35
30
if ( ! isChartInitialized ) {
36
31
isChartInitialized = true ;
37
32
this . dispatchEvent ( 'init' , {
You can’t perform that action at this time.
0 commit comments