refactor(plugin): get rid of TS error in IDE

This commit is contained in:
Ibrahim Hadeed 2016-06-11 10:20:28 -04:00
parent 4a8650e45e
commit d624a37f55

View File

@ -306,8 +306,8 @@ export function CordovaProperty(target: Function, key: string, descriptor: Typed
cordovaWarn(this.name, null);
return {};
}
let pluginInstance = getPlugin(this.pluginRef);
let pluginObj: any = this;
let pluginInstance = getPlugin(pluginObj.pluginRef);
if (!pluginInstance) {
pluginWarn(this, key);
return { };