feat(plugin): add sync option to @Cordova for sync functions

This commit is contained in:
Tim Lancina
2016-02-09 14:45:57 -06:00
parent 5bed810624
commit 17e3827831
3 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -114,7 +114,10 @@ exports.wrap = function (pluginObj, methodName, opts) {
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
if (opts.observable) {
if (opts.sync) {
return callCordovaPlugin(pluginObj, methodName, args, opts);
}
else if (opts.observable) {
return wrapObservable(pluginObj, methodName, args, opts);
}
else {