|
@@ -26,11 +26,13 @@ export default class Plugin {
|
|
*/
|
|
*/
|
|
getTarget (target, callerPlugin, el) {
|
|
getTarget (target, callerPlugin, el) {
|
|
if (typeof target === 'string') {
|
|
if (typeof target === 'string') {
|
|
- this.core.log('string is a target')
|
|
|
|
|
|
+ // this.core.log('string is a target')
|
|
|
|
+ this.core.log(`Installing ${callerPlugin.name} to ${target}`)
|
|
document.querySelector(target).appendChild(el)
|
|
document.querySelector(target).appendChild(el)
|
|
return target
|
|
return target
|
|
} else {
|
|
} else {
|
|
- this.core.log('plugin is a target')
|
|
|
|
|
|
+ // this.core.log('plugin is a target')
|
|
|
|
+ this.core.log(`Installing ${callerPlugin.name} to ${target.name}`)
|
|
let targetPlugin = this.core.getPlugin(target.name)
|
|
let targetPlugin = this.core.getPlugin(target.name)
|
|
let selectorTarget = targetPlugin.addTarget(callerPlugin, el)
|
|
let selectorTarget = targetPlugin.addTarget(callerPlugin, el)
|
|
|
|
|