feat(plugin): proxy plugin properties

Rename RequiresPlugin decorator to CordovaProperty and replace getter so
we can forward property access to the underlying plugin property.
This commit is contained in:
Tim Lancina
2016-03-04 13:56:22 -06:00
parent f360827b20
commit fc54fefde5
4 changed files with 18 additions and 14 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import {Plugin, Cordova, RequiresPlugin} from './plugin';
import {Plugin, Cordova, CordovaProperty} from './plugin';
declare var window;
@@ -102,8 +102,8 @@ export class StatusBar {
/**
* Whether the StatusBar is currently visible or not.
*/
@RequiresPlugin
static isVisible() {
@CordovaProperty
static get isVisible() {
return window.StatusBar.isVisible;
}
}