iOS: implement Image Pixel
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user