| 3737 | } |
| 3738 | |
| 3739 | ScriptBroadcaster::DelayedFunction::DelayedFunction(ScriptBroadcaster* b, var f, const Array<var>& args_, |
| 3740 | int milliSeconds, const var& thisObj): |
| 3741 | c(b->getScriptProcessor(), b, f, 0), |
| 3742 | bc(b), |
| 3743 | args(args_) |
| 3744 | { |
| 3745 | c.setHighPriority(); |
| 3746 | c.incRefCount(); |
| 3747 | |
| 3748 | if (thisObj.isObject() && thisObj.getObject() != b) |
| 3749 | c.setThisObjectRefCounted(thisObj); |
| 3750 | |
| 3751 | c.addAsSource(b, "delayedFunction"); |
| 3752 | |
| 3753 | startTimer(milliSeconds); |
| 3754 | } |
| 3755 | |
| 3756 | ScriptBroadcaster::DelayedFunction::~DelayedFunction() |
| 3757 | { |
nothing calls this directly
no test coverage detected