mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-02-10 18:05:06 +08:00
Fix event context
This commit is contained in:
@ -161,7 +161,7 @@
|
||||
{
|
||||
var pluginObj = window.Asc.plugin;
|
||||
if (pluginObj.contextMenuEvents && pluginObj.contextMenuEvents[id])
|
||||
pluginObj.contextMenuEvents[id]();
|
||||
pluginObj.contextMenuEvents[id].call(pluginObj);
|
||||
};
|
||||
|
||||
window.Asc.plugin.attachEvent = function(id, action)
|
||||
@ -182,7 +182,7 @@
|
||||
{
|
||||
var pluginObj = window.Asc.plugin;
|
||||
if (pluginObj._events && pluginObj._events[id])
|
||||
pluginObj._events[id](data);
|
||||
pluginObj._events[id].call(pluginObj, data);
|
||||
};
|
||||
|
||||
window.onunload = function() {
|
||||
|
||||
Reference in New Issue
Block a user