__renderFrameFuncs function

This commit is contained in:
ckcz123 2019-01-06 14:25:08 +08:00
parent 7015b0fbee
commit 568e98e720

View File

@ -276,8 +276,13 @@ control.prototype.setRequestAnimationFrame = function () {
var renderFrameFuncs = core.plugin.__renderFrameFuncs || [];
renderFrameFuncs.forEach(function (t) {
try {
if (core.plugin[t])
core.plugin[t](timestamp);
if (t instanceof Function) {
t(timestamp);
}
else if (typeof t == 'string') {
if (core.plugin[t])
core.plugin[t](timestamp);
}
}
catch (e) {
console.log(e);