
import Vue from "vue";
import {on} from "./dom.js";

const nodeList=[];
const context="@@clickout"

!Vue.prototype.$isServer&&on(document, "click", e =>{
     nodeList.forEach(node =>node[context].documentHandler(e)
   ) 
})

export default{
	bind(el,binding,vnode){
        if(!vnode.context||
        	el.contains(e.target)||
        	(vnode.context.popperElement&&
        	vnode.context.popperElement.contains(e.target))) return;
        if(binding.expression&&
        	el[context].methodName&&
        	vnode.context[el[context].methodName]){

        }
	}
}
@@ -61,17 +61,19 @@
 nodeList
-=
+ = 
 %5B%5D;%0Acons
@@ -81,17 +81,19 @@
  context
-=
+ = 
 %22@@click
@@ -122,18 +122,20 @@
 isServer
+ 
 &&
+ 
 on(docum
@@ -292,16 +292,17 @@
 .context
+ 
 %7C%7C%0A     
@@ -326,16 +326,17 @@
 .target)
+ 
 %7C%7C%0A     
@@ -367,16 +367,17 @@
 rElement
+ 
 &&%0A     
@@ -466,16 +466,17 @@
 pression
+ 
 &&%0A     
@@ -501,16 +501,17 @@
 thodName
+ 
 &&%0A     
@@ -554,16 +554,64 @@
 Name%5D)%7B%0A
+        %09vnode.context%5Bel%5Bcontext%5D.methodName%5D()
 %0A       

fix clickout directive