fix google maps setPadding not working issue #573 (#654)

This commit is contained in:
ziggyJ 2016-10-07 11:33:42 +11:00 committed by Ibrahim Hadeed
parent e4bde77bd4
commit 6f0f02bb66

View File

@ -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;
}