Why is there an 'event' variable available without being defined when there was an event upstream?

后端 未结 1 1533
没有蜡笔的小新
没有蜡笔的小新 2021-01-07 08:16

I stumbled across an odd behaviour today. Basically, I had a function bound to a knockout.js click event. The function was making use of the knockout event, but was not expl

1条回答
  •  一向
    一向 (楼主)
    2021-01-07 09:05

    It is something that got carried from the old version of IE, where the event object was not passed to the handler method instead it was set in the global context.

    For backward compatibility IE still supports this model and chrome also has added support for this feature. But FF is not supporting it.

    • Event object references

    0 讨论(0)
提交回复
热议问题