| 175 | } |
| 176 | |
| 177 | void AppScripting::raiseEvent(const std::string& fileName, const std::vector<script::Value> &event) { |
| 178 | TaskManager::instance().delayed([=]{ |
| 179 | if ((engine && fileName == previousFileName) || evalFile(fileName)) { |
| 180 | engine->raiseEvent(event); |
| 181 | } |
| 182 | }); |
| 183 | } |
| 184 | |
| 185 | bool AppScripting::eval(const std::string& code) { |
| 186 | initEngine(); |