refractor(mixpanel): remove pluginMeta variable

This commit is contained in:
Ibby 2016-10-27 07:26:12 -04:00
parent 4340597fc9
commit 8f5532eb74
2 changed files with 8 additions and 10 deletions

View File

@ -67,13 +67,12 @@ export interface MediaError {
*
* ```
*/
let pluginMeta = {
@Plugin({
name: 'MediaPlugin',
repo: 'https://github.com/apache/cordova-plugin-media',
plugin: 'cordova-plugin-media',
pluginRef: 'Media'
};
@Plugin(pluginMeta)
})
export class MediaPlugin {
// Constants
@ -132,7 +131,10 @@ export class MediaPlugin {
this._objectInstance = new Media(src, resolve, reject, onStatusUpdate);
});
} else {
pluginWarn(pluginMeta);
pluginWarn({
name: 'MediaPlugin',
plugin: 'cordova-plugin-media'
});
}
}

View File

@ -2,10 +2,6 @@ import { Cordova, Plugin } from './plugin';
declare var mixpanel: any;
/**
* @private
*/
/**
* @name Mixpanel
* @description
@ -112,11 +108,11 @@ export class MixpanelPeople {
/**
* @private
*/
static plugin: string = pluginMeta.plugin;
static plugin: string = 'cordova-plugin-mixpanel';
/**
* @private
*/
static pluginRef: string = pluginMeta.pluginRef + '.people';
static pluginRef: string = 'mixpanel.people';
/**
*