Added EventListener to vc-Element instead to document
Change-Id: I2321f1b2180067b83a9e0579c13010586192de1b
diff --git a/dev/js/src/vc/doc.js b/dev/js/src/vc/doc.js
index 132c4a8..b012e1f 100644
--- a/dev/js/src/vc/doc.js
+++ b/dev/js/src/vc/doc.js
@@ -150,10 +150,8 @@
};
if(KorAP.vc){
- //Replaced through Event
- //KorAP.vc.checkGrayingStat(this);
var vcchevent = new CustomEvent('vcChange', {'detail':this});
- document.dispatchEvent(vcchevent);
+ KorAP.vc.element().dispatchEvent(vcchevent);
}
return e;