File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -268,9 +268,12 @@ class BEMCheckBoxDelegateImpl extends NSObject implements BEMCheckBoxDelegate {
268268export class CheckBoxStyler implements style . Styler {
269269 private static setBorderColorProperty ( view : any , newValue : any ) {
270270 if ( view . nativeiOSCheckBox ) {
271- var color = new Color ( newValue ) ;
272- console . log ( "setBorderColorProperty to " + color ) ;
273- view . nativeiOSCheckBox . tintColor = color . ios ;
271+ try {
272+ var color = new Color ( newValue ) ;
273+ view . nativeiOSCheckBox . tintColor = color . ios ;
274+ } catch ( error ) {
275+ //Do nothing, catch bad color value
276+ }
274277 }
275278 }
276279
Original file line number Diff line number Diff line change 55 "version" : " 2.1.1"
66 },
77 "tns-ios" : {
8- "version" : " 2.1 .1"
8+ "version" : " 2.2 .1"
99 }
1010 },
1111 "dependencies" : {
1212 "nativescript-checkbox" : " file:.." ,
13- "tns-core-modules" : " ^2.0.0 "
13+ "tns-core-modules" : " ^2.2.1 "
1414 },
1515 "devDependencies" : {
1616 "babel-traverse" : " 6.7.6" ,
2222 "typescript" : " ^1.8.10" ,
2323 "tns-platform-declarations" : " 2.0.0"
2424 }
25- }
25+ }
You can’t perform that action at this time.
0 commit comments