1
我用Firebreath做了一個插件,帶有一個自定義事件,我想用YUI事件註冊一個回調。在瀏覽器插件中使用YUI 3事件與自定義事件
Y.on("mycustomevent", callback, pluginNode);
不註冊我的回調,而
pluginNode.addEventListener("mycustomevent", callback, false);
確實(在Firefox,而不是IE)。
如何使用YUI註冊我的事件?