動作しているカスタム イベントを作成するコードは次のとおりです。
var evt = document.createEvent("Event"); //creat custom event
evt.initEvent("fac_sel", true, true); //initialize the event
evt.objIndex = "some test data"; //add custom data
document.dispatchEvent(evt); //fire event!
何らかの理由で、次のコードは「未定義」になります
document.removeEventListener("Event","fac_sel", true);