Skip to content

Commit

Permalink
bindFunctionOf params bugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
wanbing committed Sep 13, 2023
1 parent c8c326c commit 012a82e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fair/lib/src/internal/bind_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ class BindingData {
return ([props]) {
var arguments = [];
if (props != null) {
arguments.add(props);
arguments.addAll(props);
}
if (args != null) {
arguments.add(args);
arguments.addAll(args);
}
_functions?['runtimeInvokeMethod']?.call(rFuncName, arguments);
};
Expand Down
2 changes: 1 addition & 1 deletion fair/lib/src/runtime/runtime_fair_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ abstract class RuntimeFairDelegate {
var arguments;
if (props != null) {
arguments = [];
arguments.add(props);
arguments.addAll(props);
}
return runtime?.invokeMethod(pageName, funcName, arguments);
};
Expand Down

0 comments on commit 012a82e

Please sign in to comment.