iOS:fix memory leak
This commit is contained in:
9
doric-js/index.d.ts
vendored
9
doric-js/index.d.ts
vendored
@@ -795,6 +795,15 @@ declare module 'doric/lib/src/widget/input' {
|
||||
editable?: boolean;
|
||||
returnKeyType?: ReturnKeyType;
|
||||
onSubmitEditing?: (text: string) => void;
|
||||
/**
|
||||
* Called before text is changed
|
||||
* @param editing: text already in box
|
||||
* @param replacement: text which will replace part of editing
|
||||
* @param start: the start index of replacing part
|
||||
* @param length: the length of replacing part
|
||||
*
|
||||
* @returns: true means the replacement will take effect, otherwise does not
|
||||
*/
|
||||
beforeTextChange?: (change: {
|
||||
editing: string;
|
||||
start: number;
|
||||
|
9
doric-js/lib/src/widget/input.d.ts
vendored
9
doric-js/lib/src/widget/input.d.ts
vendored
@@ -28,6 +28,15 @@ export declare class Input extends View {
|
||||
editable?: boolean;
|
||||
returnKeyType?: ReturnKeyType;
|
||||
onSubmitEditing?: (text: string) => void;
|
||||
/**
|
||||
* Called before text is changed
|
||||
* @param editing: text already in box
|
||||
* @param replacement: text which will replace part of editing
|
||||
* @param start: the start index of replacing part
|
||||
* @param length: the length of replacing part
|
||||
*
|
||||
* @returns: true means the replacement will take effect, otherwise does not
|
||||
*/
|
||||
beforeTextChange?: (change: {
|
||||
editing: string;
|
||||
start: number;
|
||||
|
Reference in New Issue
Block a user