Skip to content

Commit

Permalink
fix: #446 onload event
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Jul 23, 2020
1 parent 438acd4 commit bc8a7b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4916,7 +4916,9 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
this.history.reset(true);
this._resourcesStateChange();

if (typeof functions.onload === 'function') return functions.onload(this, reload);
_w.setTimeout(function () {
if (typeof functions.onload === 'function') functions.onload(core, reload);
});
},

/**
Expand Down

0 comments on commit bc8a7b8

Please sign in to comment.