Skip to content

Commit 33da8e7

Browse files
committed
chore: tsc fix
1 parent 9fdba2f commit 33da8e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ui-canvaslabel/canvaslabel.common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ export abstract class SpanBase extends Shape {
252252

253253
static mBackgroundPaint: Paint;
254254

255-
@profile
256255
drawOnCanvas(canvas: Canvas, parent: CanvasLabel) {
257256
let text = this.getText(parent);
258257
if (!text) {
@@ -596,11 +595,12 @@ export abstract class CanvasLabel extends CanvasView {
596595
super.addChild(child);
597596
}
598597
}
599-
public insertChild(child: View, atIndex: number): void {
598+
public insertChild(child: View, atIndex: number) {
600599
if (!(child instanceof View)) {
601600
this.insertShape(child, atIndex);
601+
return true;
602602
} else {
603-
super.insertChild(child, atIndex);
603+
return super.insertChild(child, atIndex);
604604
}
605605
}
606606

0 commit comments

Comments
 (0)