__renderFrameFuncs function
This commit is contained in:
parent
7015b0fbee
commit
568e98e720
@ -276,8 +276,13 @@ control.prototype.setRequestAnimationFrame = function () {
|
|||||||
var renderFrameFuncs = core.plugin.__renderFrameFuncs || [];
|
var renderFrameFuncs = core.plugin.__renderFrameFuncs || [];
|
||||||
renderFrameFuncs.forEach(function (t) {
|
renderFrameFuncs.forEach(function (t) {
|
||||||
try {
|
try {
|
||||||
if (core.plugin[t])
|
if (t instanceof Function) {
|
||||||
core.plugin[t](timestamp);
|
t(timestamp);
|
||||||
|
}
|
||||||
|
else if (typeof t == 'string') {
|
||||||
|
if (core.plugin[t])
|
||||||
|
core.plugin[t](timestamp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user