Open GoogleCodeExporter opened 9 years ago
you are using an obsolete/deprecated way of attaching a method; thus it had not
been
adequately tested in RC3. Can you try this from source control and see if it is
fixed there? I believe this bug was found and fixed a few weeks ago.
Original comment by taxilian
on 26 Feb 2010 at 5:09
Original comment by taxilian
on 26 Feb 2010 at 5:10
I download from source control. Errors in IE disappeared, and event is called.
What is a
correct way of attaching event methods?
Original comment by itmyaddress@gmail.com
on 26 Feb 2010 at 5:33
Well, in your case I'd probably use the jquery method, which is probably
something like:
$("pluginJoy").bind("test", function() {
....
});
I haven't actually tested that code, not certain if it works, but probably
would.
What it does behind the scenes is different on different browsers.
IE:
document.getElementById("pluginJoy").attachEvent("ontest", function() {
alert("ha
ha"); });
Others:
document.getElementById("pluginJoy").addEventListener("ontest", function() {
alert("ha ha"); }, false);
Original comment by taxilian
on 26 Feb 2010 at 5:48
Original issue reported on code.google.com by
itmyaddress@gmail.com
on 26 Feb 2010 at 5:03Attachments: