当我试图将一个对象类添加到这个阶段时,我得到了Uncaught TypeError: child.dispatchEvent is not a function EaselJS错误。child.parent.removeChild(child); } this.children.push(child);
child.dispatchEvent
我有一个纯javascript控件,它不依赖于需要引发事件的jquery。事件需要能够被使用jquery和此控件的客户端页面绑定和使用。当通过纯javascript引发事件时,jquery看不到它。请看这个: $('#test').on('input', function () { });$('#test').trigger('input');
// does not
flash.events::EventDispatcher/dispatchEventFunction()::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent() at com.nxp.pcn.modules.avl.view::AvlMediator/onAutoConfirmUploadPtaFile()D:\ravi\new_latestAvlMediator.as:219 at flash.events::EventDis