History

don't allow calls to init, run, evaluate from JS

Stephen Birarda committed 12 years ago

Commit 028eec71 parent e2842ab3 files · +7 −6Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+2−2
@@ -106,6 +106,7 @@ bool ScriptEngine::setScriptContents(const QString& scriptContents) { · 105 unmodified lines
106106 }
107107
108108 void ScriptEngine::init() {
109+ qDebug() << "Init called!";
109110 if (_isInitialized) {
110111 return; // only initialize once
111112 }
@@ -342,5 +343,4 @@ void ScriptEngine::stopTimer(QTimer *timer) { · 230 unmodified lines
342343 _timerFunctionMap.remove(timer);
343344 delete timer;
344345 }
345−}
346−
346+}