فهرست منبع

Better distinct between argument: plugin and class: plugin

Kevin van Zonneveld 9 سال پیش
والد
کامیت
480bde9893
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      classes.es6

+ 2 - 2
classes.es6

@@ -14,9 +14,9 @@ class Transloadit {
     };
     };
   }
   }
 
 
-  use(TransloaditPlugin, opts) {
+  use(Plugin, opts) {
     // Instantiate
     // Instantiate
-    var plugin = new TransloaditPlugin(this, opts);
+    var plugin = new Plugin(this, opts);
 
 
     // Save in container
     // Save in container
     this.plugins[plugin.type].push(plugin);
     this.plugins[plugin.type].push(plugin);