UNPKG

1.14 kBSource Map (JSON)View Raw
1{"version":3,"file":"cordova-property.js","sourceRoot":"","sources":["../../../../src/@ionic-native/core/decorators/cordova-property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,UAAU,kBAAkB,CAAC,SAAc,EAAE,GAAW;IAC5D,IAAI,iBAAiB,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE;QAC9C,OAAO,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;KAC7D;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,SAAc,EAAE,GAAW,EAAE,KAAU;IACxE,IAAI,iBAAiB,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE;QAC9C,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;KAC9D;AACH,CAAC","sourcesContent":["import { checkAvailability, getPlugin } from './common';\n\nexport function cordovaPropertyGet(pluginObj: any, key: string) {\n if (checkAvailability(pluginObj, key) === true) {\n return getPlugin(pluginObj.constructor.getPluginRef())[key];\n }\n return null;\n}\n\nexport function cordovaPropertySet(pluginObj: any, key: string, value: any) {\n if (checkAvailability(pluginObj, key) === true) {\n getPlugin(pluginObj.constructor.getPluginRef())[key] = value;\n }\n}\n"]}
\No newline at end of file