This repository was archived by the owner on Apr 2, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,17 +124,19 @@ - (void) disableScroll:(CDVInvokedUrlCommand*)command {
124124 return ;
125125 }
126126 id value = [command.arguments objectAtIndex: 0 ];
127-
128- self.disableScroll = [value boolValue ];
127+ if (value != [NSNull null ]) {
128+ self.disableScroll = [value boolValue ];
129+ }
129130}
130131
131132- (void ) hideKeyboardAccessoryBar : (CDVInvokedUrlCommand*)command {
132133 if (!command.arguments || ![command.arguments count ]){
133134 return ;
134135 }
135136 id value = [command.arguments objectAtIndex: 0 ];
136-
137- self.hideKeyboardAccessoryBar = [value boolValue ];
137+ if (value != [NSNull null ]) {
138+ self.hideKeyboardAccessoryBar = [value boolValue ];
139+ }
138140}
139141
140142- (void ) close : (CDVInvokedUrlCommand*)command {
You can’t perform that action at this time.
0 commit comments