awesome-cordova-plugins/dist/plugin.js
2015-11-28 18:26:55 -06:00

19 lines
451 B
JavaScript

var PluginDecotor = (function () {
function PluginDecotor(cls, config) {
this.cls = cls;
this.config = config;
}
return PluginDecotor;
})();
function Plugin(config) {
return function (cls) {
for (var _i = 0; _i < config.length; _i++) {
var k = config[_i];
cls[k] = config[k];
}
console.log('Decorated', cls, config);
return cls;
};
}
exports.Plugin = Plugin;