iOS: implement Image Pixel

This commit is contained in:
pengfei.zhou
2021-11-22 11:54:47 +08:00
committed by osborn
parent 190eb4afd7
commit b29f2d6a4e
20 changed files with 365 additions and 9 deletions

View File

@@ -144,7 +144,8 @@ export abstract class View implements Modeling {
superview?: Superview
callbacks!: Map<String, Function>
private callback2Id(f: Function) {
callback2Id(f: Function) {
if (this.callbacks === undefined) {
this.callbacks = new Map
}

View File

@@ -129,7 +129,7 @@ export abstract class View implements Modeling {
callbacks: Map<String, Function> = new Map
private callback2Id(f: Function) {
callback2Id(f: Function) {
const id = uniqueId('Function')
this.callbacks.set(id, f)
return id