From 6f0f02bb66d3a78e8ec3f7c56e0d3e47fa0be3f5 Mon Sep 17 00:00:00 2001 From: ziggyJ Date: Fri, 7 Oct 2016 11:33:42 +1100 Subject: [PATCH] fix google maps setPadding not working issue #573 (#654) --- src/plugins/plugin.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/plugin.ts b/src/plugins/plugin.ts index 7b0a744c5..fb02c5638 100644 --- a/src/plugins/plugin.ts +++ b/src/plugins/plugin.ts @@ -77,8 +77,10 @@ function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Func } else { // Otherwise, let's tack them on to the end of the argument list // which is 90% of cases - args.push(resolve); - args.push(reject); + if (!opts.sync) { + args.push(resolve); + args.push(reject); + } } return args; }