File tree 2 files changed +22
-9
lines changed
2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,28 @@ import { Label as TNLabel } from 'tns-core-modules/ui/label';
5
5
import { Style } from 'tns-core-modules/ui/styling/style' ;
6
6
import { layout } from 'tns-core-modules/utils/utils' ;
7
7
import { Label as LabelViewDefinition , TextShadow } from './label' ;
8
+ import { FormattedString } from 'tns-core-modules/text/formatted-string' ;
9
+ import { Span } from 'tns-core-modules/text/span' ;
10
+
11
+
12
+ declare module 'tns-core-modules/text/formatted-string' {
13
+ interface FormattedString {
14
+ addPropertyChangeHandler ( ) : void ;
15
+ removePropertyChangeHandler ( ) : void ;
16
+ }
17
+ }
18
+ declare module 'tns-core-modules/text/span' {
19
+ interface Span {
20
+ addPropertyChangeHandler ( ) : void ;
21
+ removePropertyChangeHandler ( ) : void ;
22
+ }
23
+ }
24
+
25
+ FormattedString . prototype . addPropertyChangeHandler = function ( ) { }
26
+ FormattedString . prototype . removePropertyChangeHandler = function ( ) { }
27
+ Span . prototype . addPropertyChangeHandler = function ( ) { }
28
+ Span . prototype . removePropertyChangeHandler = function ( ) { }
29
+
8
30
9
31
export const cssProperty = ( target : Object , key : string | symbol ) => {
10
32
// property getter
Original file line number Diff line number Diff line change @@ -59,23 +59,14 @@ Font.prototype.getAndroidTypeface = function() {
59
59
declare module 'tns-core-modules/text/formatted-string' {
60
60
interface FormattedString {
61
61
toNativeString ( ) : string ;
62
- addPropertyChangeHandler ( ) : void ;
63
- removePropertyChangeHandler ( ) : void ;
64
62
}
65
63
}
66
64
declare module 'tns-core-modules/text/span' {
67
65
interface Span {
68
66
toNativeString ( ) : string ;
69
- addPropertyChangeHandler ( ) : void ;
70
- removePropertyChangeHandler ( ) : void ;
71
67
}
72
68
}
73
69
74
- FormattedString . prototype . addPropertyChangeHandler = function ( ) { }
75
- FormattedString . prototype . removePropertyChangeHandler = function ( ) { }
76
- Span . prototype . addPropertyChangeHandler = function ( ) { }
77
- Span . prototype . removePropertyChangeHandler = function ( ) { }
78
-
79
70
FormattedString . prototype . toNativeString = function ( ) {
80
71
let result = '' ;
81
72
const length = this . _spans . length ;
You can’t perform that action at this time.
0 commit comments