Browse Source

Give all our our classes a type

Kevin van Zonneveld 9 years ago
parent
commit
2445526147
3 changed files with 4 additions and 0 deletions
  1. 2 0
      src/core/Core.js
  2. 1 0
      src/plugins/Dropbox.js
  3. 1 0
      src/plugins/TransloaditPlugin.js

+ 2 - 0
src/core/Core.js

@@ -11,6 +11,8 @@ export default class {
     // Dictates in what order different plugin types are ran:
     this.types = [ 'presetter', 'selecter', 'uploader' ];
 
+    this.type = 'core';
+
     // Container for different types of plugins
     this.plugins = {};
   }

+ 1 - 0
src/plugins/Dropbox.js

@@ -3,6 +3,7 @@ import request from 'superagent';
 class DropboxPlugin {
   constructor() {
     this.name = 'DropboxPlugin';
+    this.type = 'selecter';
     this.authenticate = this.authenticate.bind(this);
     this.connect = this.connect.bind(this);
     this.render = this.render.bind(this);

+ 1 - 0
src/plugins/TransloaditPlugin.js

@@ -5,6 +5,7 @@ export default class TransloaditPlugin {
   constructor(core, opts) {
     this.core = core;
     this.opts = opts;
+    this.type = 'none';
     this.name = this.constructor.name;
   }